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

Dmitry Eremin-Solenikov
2013-12-09T15:27:21Z

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@gmail.com>
> CC: Russell King - ARM Linux <linux@arm.linux.org.uk>
> CC: Daniel Mack <zonque@gmail.com>
> CC: Arnd Bergmann <arnd@arndb.de>
> ---
> 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