arm: plat-orion: use void __iomem pointers for addr-map functions
[deliverable/linux.git] / arch / arm / mach-mv78xx0 / addr-map.c
index a9bc84180d21fb378ff27eafb32bcb2ea81f2e89..a51fc247e73bb33f4486ec79d2b52233df2eb174 100644 (file)
@@ -47,7 +47,7 @@ static void __init __iomem *win_cfg_base(const struct orion_addr_map_cfg *cfg, i
         * so we don't need to take that into account here.
         */
 
-       return (void __iomem *)((win < 8) ? WIN0_OFF(win) : WIN8_OFF(win));
+       return (win < 8) ? WIN0_OFF(win) : WIN8_OFF(win);
 }
 
 /*
@@ -71,10 +71,10 @@ void __init mv78xx0_setup_cpu_mbus(void)
         */
        if (mv78xx0_core_index() == 0)
                orion_setup_cpu_mbus_target(&addr_map_cfg,
-                                           DDR_WINDOW_CPU0_BASE);
+                                           (void __iomem *) DDR_WINDOW_CPU0_BASE);
        else
                orion_setup_cpu_mbus_target(&addr_map_cfg,
-                                           DDR_WINDOW_CPU1_BASE);
+                                           (void __iomem *) DDR_WINDOW_CPU1_BASE);
 }
 
 void __init mv78xx0_setup_pcie_io_win(int window, u32 base, u32 size,
This page took 0.027056 seconds and 5 git commands to generate.