]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
powerpc/mpc512x: create SoC devices for more nodes
authorAnatolij Gustschin <agust@denx.de>
Thu, 24 Jan 2013 09:51:18 +0000 (10:51 +0100)
committerAnatolij Gustschin <agust@denx.de>
Mon, 1 Apr 2013 07:24:31 +0000 (09:24 +0200)
Create devices for mbx, sram, pci and gpio-leds nodes and
also move nfc compatible to of_bus_id list for automatic
nfc device creation.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
arch/powerpc/platforms/512x/mpc512x_shared.c

index d30235b7e3f7fa792fdc86e0118f638e0538d90c..2765cd1c7678be29a39167473b4f866e389beabc 100644 (file)
@@ -330,22 +330,19 @@ void __init mpc512x_init_IRQ(void)
 static struct of_device_id __initdata of_bus_ids[] = {
        { .compatible = "fsl,mpc5121-immr", },
        { .compatible = "fsl,mpc5121-localbus", },
+       { .compatible = "fsl,mpc5121-mbx", },
+       { .compatible = "fsl,mpc5121-nfc", },
+       { .compatible = "fsl,mpc5121-sram", },
+       { .compatible = "fsl,mpc5121-pci", },
+       { .compatible = "gpio-leds", },
        {},
 };
 
 void __init mpc512x_declare_of_platform_devices(void)
 {
-       struct device_node *np;
-
        if (of_platform_bus_probe(NULL, of_bus_ids, NULL))
                printk(KERN_ERR __FILE__ ": "
                        "Error while probing of_platform bus\n");
-
-       np = of_find_compatible_node(NULL, NULL, "fsl,mpc5121-nfc");
-       if (np) {
-               of_platform_device_create(np, NULL, NULL);
-               of_node_put(np);
-       }
 }
 
 #define DEFAULT_FIFO_SIZE 16