Skip to content

Commit

Permalink
ARM: pxa: pxa27x skip default device initialization with 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.

This is the twin commit of commit 82ce44d ("ARM: pxa3xx: skip
default device initialization when booting via DT").

Signed-off-by: Robert Jarzmik <[email protected]>
Acked-by: Daniel Mack <[email protected]>
  • Loading branch information
rjarzmik committed May 12, 2015
1 parent 8b6d103 commit 24e32a5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions arch/arm/mach-pxa/pxa27x.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,8 +477,12 @@ static int __init pxa27x_init(void)
register_syscore_ops(&pxa2xx_mfp_syscore_ops);
register_syscore_ops(&pxa2xx_clock_syscore_ops);

pxa_register_device(&pxa27x_device_gpio, &pxa27x_gpio_info);
ret = platform_add_devices(devices, ARRAY_SIZE(devices));
if (!of_have_populated_dt()) {
pxa_register_device(&pxa27x_device_gpio,
&pxa27x_gpio_info);
ret = platform_add_devices(devices,
ARRAY_SIZE(devices));
}
}

return ret;
Expand Down

0 comments on commit 24e32a5

Please sign in to comment.