diff options
author | Soren Brinkmann <soren.brinkmann@xilinx.com> | 2013-10-31 12:10:17 -0400 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2013-12-10 08:19:56 -0500 |
commit | f4d5d7b7c60c0258f7556f5cfddec2934666aa77 (patch) | |
tree | b021136ca6493c604ee214e91cae70581fbc448a | |
parent | f1fd2fa62da103ccac5a076457d8dca1b940ba43 (diff) |
arm: zynq: Use of_platform_populate instead of bus_probe
All new boards should be using this function instead of
of_platform_bus_probe.
Two side effects:
1. Possible to probe node which are not in the bus
2. Remove bus_id table from platform code
Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
-rw-r--r-- | arch/arm/mach-zynq/common.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/arm/mach-zynq/common.c b/arch/arm/mach-zynq/common.c index 9a7bd137c8fd..b7b39294c225 100644 --- a/arch/arm/mach-zynq/common.c +++ b/arch/arm/mach-zynq/common.c | |||
@@ -39,11 +39,6 @@ | |||
39 | 39 | ||
40 | void __iomem *zynq_scu_base; | 40 | void __iomem *zynq_scu_base; |
41 | 41 | ||
42 | static struct of_device_id zynq_of_bus_ids[] __initdata = { | ||
43 | { .compatible = "simple-bus", }, | ||
44 | {} | ||
45 | }; | ||
46 | |||
47 | static struct platform_device zynq_cpuidle_device = { | 42 | static struct platform_device zynq_cpuidle_device = { |
48 | .name = "cpuidle-zynq", | 43 | .name = "cpuidle-zynq", |
49 | }; | 44 | }; |
@@ -59,7 +54,7 @@ static void __init zynq_init_machine(void) | |||
59 | */ | 54 | */ |
60 | l2x0_of_init(0x02060000, 0xF0F0FFFF); | 55 | l2x0_of_init(0x02060000, 0xF0F0FFFF); |
61 | 56 | ||
62 | of_platform_bus_probe(NULL, zynq_of_bus_ids, NULL); | 57 | of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); |
63 | 58 | ||
64 | platform_device_register(&zynq_cpuidle_device); | 59 | platform_device_register(&zynq_cpuidle_device); |
65 | } | 60 | } |