[PATCH 21/26] ARM: pxa: select POWER_SUPPLY on raumfeld

Eric Miao eric.y.miao at gmail.com
Sat Oct 8 05:59:33 EDT 2011


On Sun, Oct 2, 2011 at 4:03 AM, Arnd Bergmann <arnd at arndb.de> wrote:
> The raumfeld platform code calls power_supply_set_battery_charged
> which is part of the power supply layer, so that always has
> to be enabled.
>
> Signed-off-by: Arnd Bergmann <arnd at arndb.de>

A better way might be for the raumfeld board file to compile the code
based on whether POWER_SUPPLY is selected. However, the power supply
code for raumfeld is a bit difficult to separate indeed, let's merge this
before that happens.

Daniel?

> ---
>  arch/arm/mach-pxa/Kconfig |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-pxa/Kconfig b/arch/arm/mach-pxa/Kconfig
> index cd94f2f..491c522 100644
> --- a/arch/arm/mach-pxa/Kconfig
> +++ b/arch/arm/mach-pxa/Kconfig
> @@ -453,15 +453,18 @@ config MACH_RAUMFELD_RC
>        bool "Raumfeld Controller"
>        select PXA3xx
>        select CPU_PXA300
> +       select POWER_SUPPLY
>        select HAVE_PWM
>
>  config MACH_RAUMFELD_CONNECTOR
>        bool "Raumfeld Connector"
> +       select POWER_SUPPLY
>        select PXA3xx
>        select CPU_PXA300
>
>  config MACH_RAUMFELD_SPEAKER
>        bool "Raumfeld Speaker"
> +       select POWER_SUPPLY
>        select PXA3xx
>        select CPU_PXA300
>
> --
> 1.7.5.4
>
>



More information about the linux-arm-kernel mailing list