diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2012-09-11 08:27:24 -0400 |
---|---|---|
committer | Jason Cooper <jason@lakedaemon.net> | 2012-09-21 14:04:24 -0400 |
commit | 5a2f55019391218d8c08c6f9d32591d91200de77 (patch) | |
tree | de0b8e1ae28ada95eadda74d3412698666a13c54 | |
parent | d19beac1d9358bb4a2a303f4327bf2d40ba88464 (diff) |
arm: plat-orion: use void __iomem pointers for MPP functions
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>
-rw-r--r-- | arch/arm/mach-dove/mpp.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-kirkwood/mpp.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-mv78xx0/mpp.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-orion5x/mpp.c | 3 | ||||
-rw-r--r-- | arch/arm/plat-orion/include/plat/mpp.h | 2 | ||||
-rw-r--r-- | arch/arm/plat-orion/mpp.c | 6 |
6 files changed, 8 insertions, 12 deletions
diff --git a/arch/arm/mach-dove/mpp.c b/arch/arm/mach-dove/mpp.c index fc04ebefbebd..7f70afc26f91 100644 --- a/arch/arm/mach-dove/mpp.c +++ b/arch/arm/mach-dove/mpp.c | |||
@@ -151,8 +151,7 @@ void __init dove_mpp_conf(unsigned int *mpp_list, | |||
151 | dove_mpp_dump_regs(); | 151 | dove_mpp_dump_regs(); |
152 | 152 | ||
153 | /* Use platform code for pins 0-23 */ | 153 | /* Use platform code for pins 0-23 */ |
154 | orion_mpp_conf(mpp_list, 0, MPP_MAX, | 154 | orion_mpp_conf(mpp_list, 0, MPP_MAX, DOVE_MPP_VIRT_BASE); |
155 | (unsigned long) DOVE_MPP_VIRT_BASE); | ||
156 | 155 | ||
157 | dove_mpp_conf_grp(mpp_grp_list); | 156 | dove_mpp_conf_grp(mpp_grp_list); |
158 | dove_mpp_cfg_au1(grp_au1_52_57); | 157 | dove_mpp_cfg_au1(grp_au1_52_57); |
diff --git a/arch/arm/mach-kirkwood/mpp.c b/arch/arm/mach-kirkwood/mpp.c index 67742793f3c4..0c6ad63f10c7 100644 --- a/arch/arm/mach-kirkwood/mpp.c +++ b/arch/arm/mach-kirkwood/mpp.c | |||
@@ -38,6 +38,5 @@ static unsigned int __init kirkwood_variant(void) | |||
38 | void __init kirkwood_mpp_conf(unsigned int *mpp_list) | 38 | void __init kirkwood_mpp_conf(unsigned int *mpp_list) |
39 | { | 39 | { |
40 | orion_mpp_conf(mpp_list, kirkwood_variant(), | 40 | orion_mpp_conf(mpp_list, kirkwood_variant(), |
41 | MPP_MAX, | 41 | MPP_MAX, DEV_BUS_VIRT_BASE); |
42 | (unsigned long) DEV_BUS_VIRT_BASE); | ||
43 | } | 42 | } |
diff --git a/arch/arm/mach-mv78xx0/mpp.c b/arch/arm/mach-mv78xx0/mpp.c index 4da82f85d1ce..df50342179e2 100644 --- a/arch/arm/mach-mv78xx0/mpp.c +++ b/arch/arm/mach-mv78xx0/mpp.c | |||
@@ -33,6 +33,5 @@ static unsigned int __init mv78xx0_variant(void) | |||
33 | void __init mv78xx0_mpp_conf(unsigned int *mpp_list) | 33 | void __init mv78xx0_mpp_conf(unsigned int *mpp_list) |
34 | { | 34 | { |
35 | orion_mpp_conf(mpp_list, mv78xx0_variant(), | 35 | orion_mpp_conf(mpp_list, mv78xx0_variant(), |
36 | MPP_MAX, | 36 | MPP_MAX, DEV_BUS_VIRT_BASE); |
37 | (unsigned long) DEV_BUS_VIRT_BASE); | ||
38 | } | 37 | } |
diff --git a/arch/arm/mach-orion5x/mpp.c b/arch/arm/mach-orion5x/mpp.c index 30f5ef6e2ec2..5b70026f478c 100644 --- a/arch/arm/mach-orion5x/mpp.c +++ b/arch/arm/mach-orion5x/mpp.c | |||
@@ -40,6 +40,5 @@ static unsigned int __init orion5x_variant(void) | |||
40 | void __init orion5x_mpp_conf(unsigned int *mpp_list) | 40 | void __init orion5x_mpp_conf(unsigned int *mpp_list) |
41 | { | 41 | { |
42 | orion_mpp_conf(mpp_list, orion5x_variant(), | 42 | orion_mpp_conf(mpp_list, orion5x_variant(), |
43 | MPP_MAX, | 43 | MPP_MAX, ORION5X_DEV_BUS_VIRT_BASE); |
44 | (unsigned long) ORION5X_DEV_BUS_VIRT_BASE); | ||
45 | } | 44 | } |
diff --git a/arch/arm/plat-orion/include/plat/mpp.h b/arch/arm/plat-orion/include/plat/mpp.h index 723adce99f41..254552fee889 100644 --- a/arch/arm/plat-orion/include/plat/mpp.h +++ b/arch/arm/plat-orion/include/plat/mpp.h | |||
@@ -29,6 +29,6 @@ | |||
29 | #define MPP_OUTPUT_MASK GENERIC_MPP(0, 0x0, 0, 1) | 29 | #define MPP_OUTPUT_MASK GENERIC_MPP(0, 0x0, 0, 1) |
30 | 30 | ||
31 | void __init orion_mpp_conf(unsigned int *mpp_list, unsigned int variant_mask, | 31 | void __init orion_mpp_conf(unsigned int *mpp_list, unsigned int variant_mask, |
32 | unsigned int mpp_max, unsigned int dev_bus); | 32 | unsigned int mpp_max, void __iomem *dev_bus); |
33 | 33 | ||
34 | #endif | 34 | #endif |
diff --git a/arch/arm/plat-orion/mpp.c b/arch/arm/plat-orion/mpp.c index 3b1e17bd3d17..20d4208436c8 100644 --- a/arch/arm/plat-orion/mpp.c +++ b/arch/arm/plat-orion/mpp.c | |||
@@ -17,15 +17,15 @@ | |||
17 | #include <plat/mpp.h> | 17 | #include <plat/mpp.h> |
18 | 18 | ||
19 | /* Address of the ith MPP control register */ | 19 | /* Address of the ith MPP control register */ |
20 | static __init unsigned long mpp_ctrl_addr(unsigned int i, | 20 | static __init void __iomem *mpp_ctrl_addr(unsigned int i, |
21 | unsigned long dev_bus) | 21 | void __iomem *dev_bus) |
22 | { | 22 | { |
23 | return dev_bus + (i) * 4; | 23 | return dev_bus + (i) * 4; |
24 | } | 24 | } |
25 | 25 | ||
26 | 26 | ||
27 | void __init orion_mpp_conf(unsigned int *mpp_list, unsigned int variant_mask, | 27 | void __init orion_mpp_conf(unsigned int *mpp_list, unsigned int variant_mask, |
28 | unsigned int mpp_max, unsigned int dev_bus) | 28 | unsigned int mpp_max, void __iomem *dev_bus) |
29 | { | 29 | { |
30 | unsigned int mpp_nr_regs = (1 + mpp_max/8); | 30 | unsigned int mpp_nr_regs = (1 + mpp_max/8); |
31 | u32 mpp_ctrl[mpp_nr_regs]; | 31 | u32 mpp_ctrl[mpp_nr_regs]; |