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

From: Eric Miao
Date: Sat Oct 08 2011 - 06:03:36 EST


On Sun, Oct 2, 2011 at 4:03 AM, Arnd Bergmann <arnd@xxxxxxxx> 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@xxxxxxxx>

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
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/