diff options
author | Daniel Drake <dsd@laptop.org> | 2011-07-24 13:33:21 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-07-24 14:14:44 -0400 |
commit | d8d01a6378db6e3eeb8777a8769c69e455635dc3 (patch) | |
tree | 0c707e12831c773dfc85b715ef02844ae9497dec /arch/x86/Kconfig | |
parent | a0f30f592d2d81e28f3ed7fea7f03246b0d55b75 (diff) |
x86, olpc: Fix dependency on POWER_SUPPLY
As reported by Randy Dunlap, CONFIG_POWER_SUPPLY=m caused a
compile error:
arch/x86/built-in.o: In function `battery_status_changed':
olpc-xo15-sci.c:(.text+0x3acdd): undefined reference to `power_supply_get_by_name'
olpc-xo15-sci.c:(.text+0x3ad04): undefined reference to `power_supply_changed'
The SCI drivers, as bool, require POWER_SUPPLY to be builtin.
Use select to make that a hard requirement and avoid this build
failure.
Reported-by: Randy Dunlap <rdunlap@xenotime.net>
Acked-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Daniel Drake <dsd@laptop.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/Kconfig')
-rw-r--r-- | arch/x86/Kconfig | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 8af5ba8a36b7..b198c018efc4 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig | |||
@@ -2089,7 +2089,8 @@ config OLPC_XO1_RTC | |||
2089 | 2089 | ||
2090 | config OLPC_XO1_SCI | 2090 | config OLPC_XO1_SCI |
2091 | bool "OLPC XO-1 SCI extras" | 2091 | bool "OLPC XO-1 SCI extras" |
2092 | depends on OLPC && OLPC_XO1_PM && POWER_SUPPLY | 2092 | depends on OLPC && OLPC_XO1_PM |
2093 | select POWER_SUPPLY | ||
2093 | select GPIO_CS5535 | 2094 | select GPIO_CS5535 |
2094 | select MFD_CORE | 2095 | select MFD_CORE |
2095 | ---help--- | 2096 | ---help--- |
@@ -2103,7 +2104,8 @@ config OLPC_XO1_SCI | |||
2103 | 2104 | ||
2104 | config OLPC_XO15_SCI | 2105 | config OLPC_XO15_SCI |
2105 | bool "OLPC XO-1.5 SCI extras" | 2106 | bool "OLPC XO-1.5 SCI extras" |
2106 | depends on OLPC && ACPI && POWER_SUPPLY | 2107 | depends on OLPC && ACPI |
2108 | select POWER_SUPPLY | ||
2107 | ---help--- | 2109 | ---help--- |
2108 | Add support for SCI-based features of the OLPC XO-1.5 laptop: | 2110 | Add support for SCI-based features of the OLPC XO-1.5 laptop: |
2109 | - EC-driven system wakeups | 2111 | - EC-driven system wakeups |