diff options
| -rw-r--r-- | arch/powerpc/platforms/85xx/mpc85xx_cds.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_cds.c b/arch/powerpc/platforms/85xx/mpc85xx_cds.c index 8b1de7884be6..50d7ea8f922b 100644 --- a/arch/powerpc/platforms/85xx/mpc85xx_cds.c +++ b/arch/powerpc/platforms/85xx/mpc85xx_cds.c | |||
| @@ -26,6 +26,7 @@ | |||
| 26 | #include <linux/module.h> | 26 | #include <linux/module.h> |
| 27 | #include <linux/interrupt.h> | 27 | #include <linux/interrupt.h> |
| 28 | #include <linux/fsl_devices.h> | 28 | #include <linux/fsl_devices.h> |
| 29 | #include <linux/of_platform.h> | ||
| 29 | 30 | ||
| 30 | #include <asm/system.h> | 31 | #include <asm/system.h> |
| 31 | #include <asm/pgtable.h> | 32 | #include <asm/pgtable.h> |
| @@ -335,6 +336,19 @@ static int __init mpc85xx_cds_probe(void) | |||
| 335 | return of_flat_dt_is_compatible(root, "MPC85xxCDS"); | 336 | return of_flat_dt_is_compatible(root, "MPC85xxCDS"); |
| 336 | } | 337 | } |
| 337 | 338 | ||
| 339 | static struct of_device_id __initdata of_bus_ids[] = { | ||
| 340 | { .type = "soc", }, | ||
| 341 | { .compatible = "soc", }, | ||
| 342 | { .compatible = "simple-bus", }, | ||
| 343 | {}, | ||
| 344 | }; | ||
| 345 | |||
| 346 | static int __init declare_of_platform_devices(void) | ||
| 347 | { | ||
| 348 | return of_platform_bus_probe(NULL, of_bus_ids, NULL); | ||
| 349 | } | ||
| 350 | machine_device_initcall(mpc85xx_cds, declare_of_platform_devices); | ||
| 351 | |||
| 338 | define_machine(mpc85xx_cds) { | 352 | define_machine(mpc85xx_cds) { |
| 339 | .name = "MPC85xx CDS", | 353 | .name = "MPC85xx CDS", |
| 340 | .probe = mpc85xx_cds_probe, | 354 | .probe = mpc85xx_cds_probe, |
