diff options
author | Li Yang <leoli@freescale.com> | 2008-03-06 18:42:35 +0800 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2008-03-07 08:42:22 -0600 |
commit | d7f46190ef1048e48f71c8a7a60c2881c437d08d (patch) | |
tree | 8c8a46149ea05cf897768c6776223eddaf7a7620 /arch/powerpc/platforms/83xx | |
parent | 28b958859206b7010d03129611c2e444898e3ee4 (diff) | |
download | blackbird-op-linux-d7f46190ef1048e48f71c8a7a60c2881c437d08d.tar.gz blackbird-op-linux-d7f46190ef1048e48f71c8a7a60c2881c437d08d.zip |
[POWERPC] 83xx: Add local bus device nodes to MPC837xMDS device trees.
Signed-off-by: Li Yang <leoli@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/83xx')
-rw-r--r-- | arch/powerpc/platforms/83xx/mpc837x_mds.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/powerpc/platforms/83xx/mpc837x_mds.c b/arch/powerpc/platforms/83xx/mpc837x_mds.c index 8a9c26973605..64d17b0d6455 100644 --- a/arch/powerpc/platforms/83xx/mpc837x_mds.c +++ b/arch/powerpc/platforms/83xx/mpc837x_mds.c @@ -39,12 +39,9 @@ static int mpc837xmds_usb_cfg(void) if (ret) return ret; /* Map BCSR area */ - np = of_find_node_by_name(NULL, "bcsr"); + np = of_find_compatible_node(NULL, NULL, "fsl,mpc837xmds-bcsr"); if (np) { - struct resource res; - - of_address_to_resource(np, 0, &res); - bcsr_regs = ioremap(res.start, res.end - res.start + 1); + bcsr_regs = of_iomap(np, 0); of_node_put(np); } if (!bcsr_regs) @@ -96,6 +93,7 @@ static void __init mpc837x_mds_setup_arch(void) static struct of_device_id mpc837x_ids[] = { { .type = "soc", }, { .compatible = "soc", }, + { .compatible = "simple-bus", }, {}, }; |