diff options
author | Anatolij Gustschin <agust@denx.de> | 2010-02-16 10:47:43 -0700 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-02-16 10:47:43 -0700 |
commit | 5b2b6255f2fda198cd5176f6cddae600c946a87d (patch) | |
tree | 5ce7bca9cbc442fdf2bafb232c8ac1f1c8090fb0 /arch/powerpc | |
parent | 50aae7241eb94e02d97e03cd88be425ef09e6ab4 (diff) | |
download | blackbird-op-linux-5b2b6255f2fda198cd5176f6cddae600c946a87d.tar.gz blackbird-op-linux-5b2b6255f2fda198cd5176f6cddae600c946a87d.zip |
powerpc/mpc5121: create and register NFC device
Instantiate NAND Flash Controller device if it's
description is found in the device tree.
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/platforms/512x/mpc512x_shared.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/512x/mpc512x_shared.c b/arch/powerpc/platforms/512x/mpc512x_shared.c index a45824af03fc..b7f518a60f03 100644 --- a/arch/powerpc/platforms/512x/mpc512x_shared.c +++ b/arch/powerpc/platforms/512x/mpc512x_shared.c @@ -82,9 +82,17 @@ static struct of_device_id __initdata of_bus_ids[] = { 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); + } } void __init mpc512x_init(void) |