Skip to content

Commit

Permalink
ARM: pxa3xx: skip default device initialization when booting via DT
Browse files Browse the repository at this point in the history
When booting via DT, the default PXA devices must not have been probed
before, otherwise the augmented information from the device tree is
ignored.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com>
  • Loading branch information
Daniel Mack authored and Haojian Zhuang committed Aug 16, 2012
1 parent 089d036 commit 82ce44d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/arm/mach-pxa/pxa3xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <linux/platform_device.h>
#include <linux/irq.h>
#include <linux/io.h>
#include <linux/of.h>
#include <linux/syscore_ops.h>
#include <linux/i2c/pxa-i2c.h>

Expand Down Expand Up @@ -479,7 +480,8 @@ static int __init pxa3xx_init(void)
register_syscore_ops(&pxa3xx_mfp_syscore_ops);
register_syscore_ops(&pxa3xx_clock_syscore_ops);

ret = platform_add_devices(devices, ARRAY_SIZE(devices));
if (!of_have_populated_dt())
ret = platform_add_devices(devices, ARRAY_SIZE(devices));
}

return ret;
Expand Down

0 comments on commit 82ce44d

Please sign in to comment.