aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/platforms/512x/mpc512x_shared.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/arch/powerpc/platforms/512x/mpc512x_shared.c b/arch/powerpc/platforms/512x/mpc512x_shared.c
index d30235b7e3f7..2765cd1c7678 100644
--- a/arch/powerpc/platforms/512x/mpc512x_shared.c
+++ b/arch/powerpc/platforms/512x/mpc512x_shared.c
@@ -330,22 +330,19 @@ void __init mpc512x_init_IRQ(void)
330static struct of_device_id __initdata of_bus_ids[] = { 330static struct of_device_id __initdata of_bus_ids[] = {
331 { .compatible = "fsl,mpc5121-immr", }, 331 { .compatible = "fsl,mpc5121-immr", },
332 { .compatible = "fsl,mpc5121-localbus", }, 332 { .compatible = "fsl,mpc5121-localbus", },
333 { .compatible = "fsl,mpc5121-mbx", },
334 { .compatible = "fsl,mpc5121-nfc", },
335 { .compatible = "fsl,mpc5121-sram", },
336 { .compatible = "fsl,mpc5121-pci", },
337 { .compatible = "gpio-leds", },
333 {}, 338 {},
334}; 339};
335 340
336void __init mpc512x_declare_of_platform_devices(void) 341void __init mpc512x_declare_of_platform_devices(void)
337{ 342{
338 struct device_node *np;
339
340 if (of_platform_bus_probe(NULL, of_bus_ids, NULL)) 343 if (of_platform_bus_probe(NULL, of_bus_ids, NULL))
341 printk(KERN_ERR __FILE__ ": " 344 printk(KERN_ERR __FILE__ ": "
342 "Error while probing of_platform bus\n"); 345 "Error while probing of_platform bus\n");
343
344 np = of_find_compatible_node(NULL, NULL, "fsl,mpc5121-nfc");
345 if (np) {
346 of_platform_device_create(np, NULL, NULL);
347 of_node_put(np);
348 }
349} 346}
350 347
351#define DEFAULT_FIFO_SIZE 16 348#define DEFAULT_FIFO_SIZE 16