aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/52xx/lite5200.c
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2008-01-18 11:30:37 -0500
committerGrant Likely <grant.likely@secretlab.ca>2008-01-18 11:30:37 -0500
commit75ca399e82726fba877f3cce7ee49c13b43efd67 (patch)
treede7952fd34f2cfcb88b3ddf0331d3445956d0f2b /arch/powerpc/platforms/52xx/lite5200.c
parentf584bc65ca9b9a4c21cc17bb01883874e2e6df0a (diff)
[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/lite5200.c')
-rw-r--r--arch/powerpc/platforms/52xx/lite5200.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/52xx/lite5200.c b/arch/powerpc/platforms/52xx/lite5200.c
index ce903bef004e..5a8d190f53e4 100644
--- a/arch/powerpc/platforms/52xx/lite5200.c
+++ b/arch/powerpc/platforms/52xx/lite5200.c
@@ -42,10 +42,13 @@
42static void __init 42static void __init
43lite5200_fix_clock_config(void) 43lite5200_fix_clock_config(void)
44{ 44{
45 struct device_node *np;
45 struct mpc52xx_cdm __iomem *cdm; 46 struct mpc52xx_cdm __iomem *cdm;
46 47
47 /* Map zones */ 48 /* Map zones */
48 cdm = mpc52xx_find_and_map("mpc5200-cdm"); 49 np = of_find_compatible_node(NULL, NULL, "mpc5200-cdm");
50 cdm = of_iomap(np, 0);
51 of_node_put(np);
49 if (!cdm) { 52 if (!cdm) {
50 printk(KERN_ERR "%s() failed; expect abnormal behaviour\n", 53 printk(KERN_ERR "%s() failed; expect abnormal behaviour\n",
51 __FUNCTION__); 54 __FUNCTION__);
@@ -74,10 +77,13 @@ lite5200_fix_clock_config(void)
74static void __init 77static void __init
75lite5200_fix_port_config(void) 78lite5200_fix_port_config(void)
76{ 79{
80 struct device_node *np;
77 struct mpc52xx_gpio __iomem *gpio; 81 struct mpc52xx_gpio __iomem *gpio;
78 u32 port_config; 82 u32 port_config;
79 83
80 gpio = mpc52xx_find_and_map("mpc5200-gpio"); 84 np = of_find_compatible_node(NULL, NULL, "mpc5200-gpio");
85 gpio = of_iomap(np, 0);
86 of_node_put(np);
81 if (!gpio) { 87 if (!gpio) {
82 printk(KERN_ERR "%s() failed. expect abnormal behavior\n", 88 printk(KERN_ERR "%s() failed. expect abnormal behavior\n",
83 __FUNCTION__); 89 __FUNCTION__);