ARM: OMAP: SmartReflex: select CONFIG_POWER_SUPPLY in Kconfig
commit70071ff989bae3edfc14847aaa8e1c3baa2aacff
authorJean Pihet <j-pihet@ti.com>
Thu, 20 Sep 2012 14:36:56 +0000 (20 16:36 +0200)
committerKevin Hilman <khilman@ti.com>
Tue, 2 Oct 2012 21:51:59 +0000 (2 14:51 -0700)
tree9e2d5b65604af72ef07f0130e6fd744aa29b0396
parent93b44bea0c17130e62d8b1b82c0e2a0d671230d1
ARM: OMAP: SmartReflex: select CONFIG_POWER_SUPPLY in Kconfig

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

Signed-off-by: Jean Pihet <j-pihet@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
arch/arm/plat-omap/Kconfig