arm: plat-orion: use void __iomem pointers for MPP functions
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 11 Sep 2012 12:27:24 +0000 (14:27 +0200)
committerJason Cooper <jason@lakedaemon.net>
Fri, 21 Sep 2012 18:04:24 +0000 (18:04 +0000)
The registration function for MPP now takes void __iomem pointers, so
we remove the temporary "unsigned long" casts from the mach-*/mpp.c
files.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Tested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/mach-dove/mpp.c
arch/arm/mach-kirkwood/mpp.c
arch/arm/mach-mv78xx0/mpp.c
arch/arm/mach-orion5x/mpp.c
arch/arm/plat-orion/include/plat/mpp.h
arch/arm/plat-orion/mpp.c

index fc04ebefbebd41a5082fb22b0244d2456f136509..7f70afc26f91b0f0e47a4056251c33d2d1211d61 100644 (file)
@@ -151,8 +151,7 @@ void __init dove_mpp_conf(unsigned int *mpp_list,
        dove_mpp_dump_regs();
 
        /* Use platform code for pins 0-23 */
-       orion_mpp_conf(mpp_list, 0, MPP_MAX,
-                      (unsigned long) DOVE_MPP_VIRT_BASE);
+       orion_mpp_conf(mpp_list, 0, MPP_MAX, DOVE_MPP_VIRT_BASE);
 
        dove_mpp_conf_grp(mpp_grp_list);
        dove_mpp_cfg_au1(grp_au1_52_57);
index 67742793f3c42317d06cbf0faba3489d56a0b9d3..0c6ad63f10c728c9961b3711597587d1ba642bcc 100644 (file)
@@ -38,6 +38,5 @@ static unsigned int __init kirkwood_variant(void)
 void __init kirkwood_mpp_conf(unsigned int *mpp_list)
 {
        orion_mpp_conf(mpp_list, kirkwood_variant(),
-                      MPP_MAX,
-                      (unsigned long) DEV_BUS_VIRT_BASE);
+                      MPP_MAX, DEV_BUS_VIRT_BASE);
 }
index 4da82f85d1ce98ac79c749abed69f8a6719a1735..df50342179e2de45053db13c92d3cc5132be83fd 100644 (file)
@@ -33,6 +33,5 @@ static unsigned int __init mv78xx0_variant(void)
 void __init mv78xx0_mpp_conf(unsigned int *mpp_list)
 {
        orion_mpp_conf(mpp_list, mv78xx0_variant(),
-                      MPP_MAX,
-                      (unsigned long) DEV_BUS_VIRT_BASE);
+                      MPP_MAX, DEV_BUS_VIRT_BASE);
 }
index 30f5ef6e2ec269a2f592b660bc6a218a550b2fb5..5b70026f478c6be00032e353d72ebd14d049d925 100644 (file)
@@ -40,6 +40,5 @@ static unsigned int __init orion5x_variant(void)
 void __init orion5x_mpp_conf(unsigned int *mpp_list)
 {
        orion_mpp_conf(mpp_list, orion5x_variant(),
-                      MPP_MAX,
-                      (unsigned long) ORION5X_DEV_BUS_VIRT_BASE);
+                      MPP_MAX, ORION5X_DEV_BUS_VIRT_BASE);
 }
index 723adce99f4184ba9826cf73fa49cd4708d597f1..254552fee8895c7523abafba85e0d13784ccc098 100644 (file)
@@ -29,6 +29,6 @@
 #define MPP_OUTPUT_MASK                GENERIC_MPP(0, 0x0, 0, 1)
 
 void __init orion_mpp_conf(unsigned int *mpp_list, unsigned int variant_mask,
-                          unsigned int mpp_max, unsigned int dev_bus);
+                          unsigned int mpp_max, void __iomem *dev_bus);
 
 #endif
index 3b1e17bd3d17ddbffaf3be9e7b11631b20dfbd29..20d4208436c8eaa24223590fa838e30a5de574b2 100644 (file)
 #include <plat/mpp.h>
 
 /* Address of the ith MPP control register */
-static __init unsigned long mpp_ctrl_addr(unsigned int i,
-                                         unsigned long dev_bus)
+static __init void __iomem *mpp_ctrl_addr(unsigned int i,
+                                         void __iomem *dev_bus)
 {
        return dev_bus + (i) * 4;
 }
 
 
 void __init orion_mpp_conf(unsigned int *mpp_list, unsigned int variant_mask,
-                          unsigned int mpp_max, unsigned int dev_bus)
+                          unsigned int mpp_max, void __iomem *dev_bus)
 {
        unsigned int mpp_nr_regs = (1 + mpp_max/8);
        u32 mpp_ctrl[mpp_nr_regs];