提交 e7ae1e7e 编写于 作者: I Ingo Molnar 提交者: Len Brown

ACER_WMI/ASUS_LAPTOP: fix build bug

randconfig testing in x86.git found the following upstream build bug:

 drivers/built-in.o: In function `acer_led_exit':
 acer-wmi.c:(.text+0xdc76e): undefined reference to `led_classdev_unregister'
 drivers/built-in.o: In function `acer_platform_probe':
 acer-wmi.c:(.devinit.text+0x63e6): undefined reference to `led_classdev_register'

which was due to acer-wmi.o only depending on CONFIG_LEDS_CLASS, while
also using a symbol offered by CONFIG_NEW_LEDS. Also fix a similar bug
in CONFIG_ASUS_LAPTOP.
Signed-off-by: NIngo Molnar <mingo@elte.hu>
Signed-off-by: NLen Brown <len.brown@intel.com>
上级 90fe17f4
...@@ -140,6 +140,7 @@ config ACER_WMI ...@@ -140,6 +140,7 @@ config ACER_WMI
depends on EXPERIMENTAL depends on EXPERIMENTAL
depends on ACPI depends on ACPI
depends on LEDS_CLASS depends on LEDS_CLASS
depends on NEW_LEDS
depends on BACKLIGHT_CLASS_DEVICE depends on BACKLIGHT_CLASS_DEVICE
depends on SERIO_I8042 depends on SERIO_I8042
select ACPI_WMI select ACPI_WMI
...@@ -160,6 +161,7 @@ config ASUS_LAPTOP ...@@ -160,6 +161,7 @@ config ASUS_LAPTOP
depends on ACPI depends on ACPI
depends on EXPERIMENTAL && !ACPI_ASUS depends on EXPERIMENTAL && !ACPI_ASUS
depends on LEDS_CLASS depends on LEDS_CLASS
depends on NEW_LEDS
depends on BACKLIGHT_CLASS_DEVICE depends on BACKLIGHT_CLASS_DEVICE
---help--- ---help---
This is the new Linux driver for Asus laptops. It may also support some This is the new Linux driver for Asus laptops. It may also support some
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册