Skip to content

Commit fa112cf

Browse files
committed
x86/olpc: Fix build error with CONFIG_MFD_CS5535=m
When building a 32-bit config which has the above MFD item as module but OLPC_XO1_PM is enabled =y - which is bool, btw - the kernel fails building with: ld: arch/x86/platform/olpc/olpc-xo1-pm.o: in function `xo1_pm_remove': /home/boris/kernel/linux/arch/x86/platform/olpc/olpc-xo1-pm.c:159: undefined reference to `mfd_cell_disable' ld: arch/x86/platform/olpc/olpc-xo1-pm.o: in function `xo1_pm_probe': /home/boris/kernel/linux/arch/x86/platform/olpc/olpc-xo1-pm.c:133: undefined reference to `mfd_cell_enable' make: *** [Makefile:1030: vmlinux] Error 1 Force MFD_CS5535 to y if OLPC_XO1_PM is enabled. Signed-off-by: Borislav Petkov <bp@suse.de> Cc: Lubomir Rintel <lkundrak@v3.sk> Cc: x86@kernel.org Link: http://lkml.kernel.org/r/20181005131750.GA5366@zn.tnic
1 parent d92116b commit fa112cf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/x86/Kconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2742,8 +2742,7 @@ config OLPC
27422742

27432743
config OLPC_XO1_PM
27442744
bool "OLPC XO-1 Power Management"
2745-
depends on OLPC && MFD_CS5535 && PM_SLEEP
2746-
select MFD_CORE
2745+
depends on OLPC && MFD_CS5535=y && PM_SLEEP
27472746
---help---
27482747
Add support for poweroff and suspend of the OLPC XO-1 laptop.
27492748

0 commit comments

Comments
 (0)