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_pm.c | |
parent | f584bc65ca9b9a4c21cc17bb01883874e2e6df0a (diff) | |
download | kernel_samsung_smdk4412-75ca399e82726fba877f3cce7ee49c13b43efd67.zip kernel_samsung_smdk4412-75ca399e82726fba877f3cce7ee49c13b43efd67.tar.gz kernel_samsung_smdk4412-75ca399e82726fba877f3cce7ee49c13b43efd67.tar.bz2 |
[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_pm.c')
-rw-r--r-- | arch/powerpc/platforms/52xx/mpc52xx_pm.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/52xx/mpc52xx_pm.c b/arch/powerpc/platforms/52xx/mpc52xx_pm.c index 7ffa7ba..52f0277 100644 --- a/arch/powerpc/platforms/52xx/mpc52xx_pm.c +++ b/arch/powerpc/platforms/52xx/mpc52xx_pm.c @@ -59,10 +59,14 @@ int mpc52xx_set_wakeup_gpio(u8 pin, u8 level) int mpc52xx_pm_prepare(void) { + struct device_node *np; + /* map the whole register space */ - mbar = mpc52xx_find_and_map("mpc5200"); + np = of_find_compatible_node(NULL, NULL, "mpc5200"); + mbar = of_iomap(np, 0); + of_node_put(np); if (!mbar) { - printk(KERN_ERR "%s:%i Error mapping registers\n", __func__, __LINE__); + pr_err("mpc52xx_pm_prepare(): could not map registers\n"); return -ENOSYS; } /* these offsets are from mpc5200 users manual */ |