aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-orion
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2011-05-15 07:32:54 -0400
committerNicolas Pitre <nico@fluxnic.net>2011-05-16 15:49:31 -0400
commit3cff484d4b264ff467a3b45c544cbbbab69f0bf8 (patch)
tree8e647ab4b9549859e74269163da09de8b66168a1 /arch/arm/plat-orion
parent554cdaefd1cf7bb54b209c4e68c7cec87ce442a9 (diff)
ARM: dove: Consolidate mpp code with platform mpp.
Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
Diffstat (limited to 'arch/arm/plat-orion')
-rw-r--r--arch/arm/plat-orion/mpp.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/arm/plat-orion/mpp.c b/arch/arm/plat-orion/mpp.c
index 248c02205b66..91553432711d 100644
--- a/arch/arm/plat-orion/mpp.c
+++ b/arch/arm/plat-orion/mpp.c
@@ -31,9 +31,6 @@ void __init orion_mpp_conf(unsigned int *mpp_list, unsigned int variant_mask,
31 u32 mpp_ctrl[mpp_nr_regs]; 31 u32 mpp_ctrl[mpp_nr_regs];
32 int i; 32 int i;
33 33
34 if (!variant_mask)
35 return;
36
37 printk(KERN_DEBUG "initial MPP regs:"); 34 printk(KERN_DEBUG "initial MPP regs:");
38 for (i = 0; i < mpp_nr_regs; i++) { 35 for (i = 0; i < mpp_nr_regs; i++) {
39 mpp_ctrl[i] = readl(mpp_ctrl_addr(i, dev_bus)); 36 mpp_ctrl[i] = readl(mpp_ctrl_addr(i, dev_bus));
@@ -51,7 +48,7 @@ void __init orion_mpp_conf(unsigned int *mpp_list, unsigned int variant_mask,
51 "number (%u)\n", num); 48 "number (%u)\n", num);
52 continue; 49 continue;
53 } 50 }
54 if (!(*mpp_list & variant_mask)) { 51 if (variant_mask & !(*mpp_list & variant_mask)) {
55 printk(KERN_WARNING 52 printk(KERN_WARNING
56 "orion_mpp_conf: requested MPP%u config " 53 "orion_mpp_conf: requested MPP%u config "
57 "unavailable on this hardware\n", num); 54 "unavailable on this hardware\n", num);