Re: [PATCH 7/9] ARM: dts: pxa27x: skip static platform devices

From: Dmitry Eremin-Solenikov
Date: Mon Dec 09 2013 - 10:27:25 EST


Hello,

On Mon, 09 Dec 2013 02:53:47 +0400, Sergei Ianovich wrote:

> Static plaform devices are created from postcore_initcall(). The status
> quo remains for non-device tree machines.
>
> Device tree machine now have a chance to prevent spawning of static
> devices by calling pxa27x_skip_init().
>
> Signed-off-by: Sergei Ianovich <ynvich@xxxxxxxxx>
> CC: Russell King - ARM Linux <linux@xxxxxxxxxxxxxxxx>
> CC: Daniel Mack <zonque@xxxxxxxxx>
> CC: Arnd Bergmann <arnd@xxxxxxxx>
> ---
> arch/arm/mach-pxa/include/mach/pxa27x.h | 1 +
> arch/arm/mach-pxa/pxa27x.c | 10 ++++++++++ 2 files
> changed, 11 insertions(+)

I would suggest to copy the corresponding code from pxa3xx.c - use
of_have_populated_dt() instead of adding extra static variable.

--
With best wishes
Dmitry


--
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/