diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2008-01-18 09:30:37 -0700 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2008-01-18 09:30:37 -0700 |
commit | 75ca399e82726fba877f3cce7ee49c13b43efd67 (patch) | |
tree | de7952fd34f2cfcb88b3ddf0331d3445956d0f2b /arch/powerpc/platforms/52xx/mpc52xx_pic.c | |
parent | f584bc65ca9b9a4c21cc17bb01883874e2e6df0a (diff) | |
download | talos-obmc-linux-75ca399e82726fba877f3cce7ee49c13b43efd67.tar.gz talos-obmc-linux-75ca399e82726fba877f3cce7ee49c13b43efd67.zip |
[POWERPC] mpc5200: eliminate mpc52xx_*_map_*() functions.
mpc5200 platform code defines a bunch of map functions which duplicate the
functionality of of_iomap(). Remove them and use of_iomap() instead.
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'arch/powerpc/platforms/52xx/mpc52xx_pic.c')
-rw-r--r-- | arch/powerpc/platforms/52xx/mpc52xx_pic.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/powerpc/platforms/52xx/mpc52xx_pic.c b/arch/powerpc/platforms/52xx/mpc52xx_pic.c index 61100f270c68..07e89876d582 100644 --- a/arch/powerpc/platforms/52xx/mpc52xx_pic.c +++ b/arch/powerpc/platforms/52xx/mpc52xx_pic.c @@ -364,16 +364,18 @@ void __init mpc52xx_init_irq(void) { u32 intr_ctrl; struct device_node *picnode; + struct device_node *np; /* Remap the necessary zones */ picnode = of_find_compatible_node(NULL, NULL, "mpc5200-pic"); - - intr = mpc52xx_find_and_map("mpc5200-pic"); + intr = of_iomap(picnode, 0); if (!intr) panic(__FILE__ ": find_and_map failed on 'mpc5200-pic'. " "Check node !"); - sdma = mpc52xx_find_and_map("mpc5200-bestcomm"); + np = of_find_compatible_node(NULL, NULL, "mpc5200-bestcomm"); + sdma = of_iomap(np, 0); + of_node_put(np); if (!sdma) panic(__FILE__ ": find_and_map failed on 'mpc5200-bestcomm'. " "Check node !"); |