Skip to contentSkip to conversation

ARM: OMAP: SmartReflex: select CONFIG_POWER_SUPPLY in Kconfig

PATCH New jean.pihet at newoldbits.com 2 participants 2 messages Sep 20, 2012 – Oct 2, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: OMAP: SmartReflex: select CONFIG_POWER_SUPPLY in Kconfig

From: Jean Pihet <[email protected]>

Select POWER_SUPPLY from POWER_AVS_OMAP entry in Kconfig.

This avoids the following build problems using a randconfig that has CONFIG_POWER_SUPPLY not set:

LD init/built-in.o
arch/arm/mach-omap2/built-in.o: In function `sr_class3_configure':
arch/arm/mach-omap2/smartreflex-class3.c:44: undefined reference to sr_configure_errgen' arch/arm/mach-omap2/built-in.o: In function sr_class3_disable':
arch/arm/mach-omap2/smartreflex-class3.c:33: undefined reference to sr_disable_errgen' arch/arm/mach-omap2/smartreflex-class3.c:35: undefined reference to sr_disable' arch/arm/mach-omap2/built-in.o: In function `sr_class3_enable':
arch/arm/mach-omap2/smartreflex-class3.c:28: undefined reference to sr_enable' arch/arm/mach-omap2/built-in.o: In function sr_class3_init':
arch/arm/mach-omap2/smartreflex-class3.c:59: undefined reference to `sr_register_class'
make: *** [vmlinux] Error 1

---
 arch/arm/plat-omap/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/plat-omap/Kconfig +1 -0
index dd36eba..001a795 100644
@@ -48,6 +48,7 @@ config OMAP_DEBUG_LEDS
 config POWER_AVS_OMAP
 	bool "AVS(Adaptive Voltage Scaling) support for OMAP IP versions 1&2"
 	depends on POWER_AVS && (ARCH_OMAP3 || ARCH_OMAP4) && PM
+	select POWER_SUPPLY
 	help
 	  Say Y to enable AVS(Adaptive Voltage Scaling)
 	  support on OMAP containing the version 1 or
Signature · 1 line
1.7.7.6
#1 lore raw

PATCH 1/1 ARM: OMAP: SmartReflex: select CONFIG_POWER_SUPPLY in Kconfig

Quoted 19 lines · jean.pihet at newoldbits.com

From: Jean Pihet <[email protected]>

Select POWER_SUPPLY from POWER_AVS_OMAP entry in Kconfig.

This avoids the following build problems using a randconfig that has CONFIG_POWER_SUPPLY not set:

LD init/built-in.o
arch/arm/mach-omap2/built-in.o: In function `sr_class3_configure':
arch/arm/mach-omap2/smartreflex-class3.c:44: undefined reference to sr_configure_errgen' arch/arm/mach-omap2/built-in.o: In function sr_class3_disable':
arch/arm/mach-omap2/smartreflex-class3.c:33: undefined reference to sr_disable_errgen' arch/arm/mach-omap2/smartreflex-class3.c:35: undefined reference to sr_disable' arch/arm/mach-omap2/built-in.o: In function `sr_class3_enable':
arch/arm/mach-omap2/smartreflex-class3.c:28: undefined reference to sr_enable' arch/arm/mach-omap2/built-in.o: In function sr_class3_init':
arch/arm/mach-omap2/smartreflex-class3.c:59: undefined reference to `sr_register_class'
make: *** [vmlinux] Error 1

Quoted 1 line

Thanks, queuing for v3.7-rc

Kevin

Quoted 16 lines
---
 arch/arm/plat-omap/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/plat-omap/Kconfig +1 -0
index dd36eba..001a795 100644
@@ -48,6 +48,7 @@ config OMAP_DEBUG_LEDS
 config POWER_AVS_OMAP
 	bool "AVS(Adaptive Voltage Scaling) support for OMAP IP versions 1&2"
 	depends on POWER_AVS && (ARCH_OMAP3 || ARCH_OMAP4) && PM
+	select POWER_SUPPLY
 	help
 	  Say Y to enable AVS(Adaptive Voltage Scaling)
 	  support on OMAP containing the version 1 or