Patch for linking problem with linux-2.4-benh kernel
On Tue, Feb 26, 2002 at 05:29:25PM -0500, ecc wrote:
> I get the following error when trying to build 2.4.18-rc4-benh for a
> G4 Cube:
>
> drivers/macintosh/macintosh.o: In function `pmu_handle_data':
> drivers/macintosh/macintosh.o(.text.openfirmware+0x1520):
> undefined reference to `set_backlight_level'
Here's the fix:
--- linux/drivers/macintosh/via-pmu.c~ Fri Feb 22 09:54:27 2002
+++ linux/drivers/macintosh/via-pmu.c Tue Feb 26 18:39:32 2002
@@ -1378,8 +1378,8 @@
if ((data[0] & PMU_INT_SNDBRT) && len == 3) {
#if defined(CONFIG_INPUT_ADBHID) && defined(CONFIG_PMAC_BACKLIGHT)
if (!disable_kernel_backlight)
-#endif
set_backlight_level(data[1] >> 4);
+#endif
}
#ifdef CONFIG_PMAC_PBOOK
/* Environement or tick interrupt, query batteries */
--
Eric C. Cooper e c c @ c m u . e d u
Reply to: