aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2012-07-25 11:52:52 -0400
committerHaojian Zhuang <haojian.zhuang@gmail.com>2012-08-16 04:15:01 -0400
commit82ce44d104dc97f4f7fbd035ca34f723f0fb7287 (patch)
treec6758ff48d48a0f70aea2e345cd93b5e42b244da /arch/arm/mach-pxa
parent089d03629b04ebe8163905a2398742b426e35085 (diff)
ARM: pxa3xx: skip default device initialization when booting via DT
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>
Diffstat (limited to 'arch/arm/mach-pxa')
-rw-r--r--arch/arm/mach-pxa/pxa3xx.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-pxa/pxa3xx.c b/arch/arm/mach-pxa/pxa3xx.c
index 1827d3ce2d5b..4a9d04a57de5 100644
--- a/arch/arm/mach-pxa/pxa3xx.c
+++ b/arch/arm/mach-pxa/pxa3xx.c
@@ -19,6 +19,7 @@
19#include <linux/platform_device.h> 19#include <linux/platform_device.h>
20#include <linux/irq.h> 20#include <linux/irq.h>
21#include <linux/io.h> 21#include <linux/io.h>
22#include <linux/of.h>
22#include <linux/syscore_ops.h> 23#include <linux/syscore_ops.h>
23#include <linux/i2c/pxa-i2c.h> 24#include <linux/i2c/pxa-i2c.h>
24 25
@@ -479,7 +480,8 @@ static int __init pxa3xx_init(void)
479 register_syscore_ops(&pxa3xx_mfp_syscore_ops); 480 register_syscore_ops(&pxa3xx_mfp_syscore_ops);
480 register_syscore_ops(&pxa3xx_clock_syscore_ops); 481 register_syscore_ops(&pxa3xx_clock_syscore_ops);
481 482
482 ret = platform_add_devices(devices, ARRAY_SIZE(devices)); 483 if (!of_have_populated_dt())
484 ret = platform_add_devices(devices, ARRAY_SIZE(devices));
483 } 485 }
484 486
485 return ret; 487 return ret;