diff options
author | Andrew Lunn <andrew@lunn.ch> | 2011-05-15 13:32:54 +0200 |
---|---|---|
committer | Nicolas Pitre <nico@fluxnic.net> | 2011-05-16 21:49:31 +0200 |
commit | 3cff484d4b264ff467a3b45c544cbbbab69f0bf8 (patch) | |
tree | 8e647ab4b9549859e74269163da09de8b66168a1 /arch/arm/plat-orion | |
parent | ARM: orion5x: Refactor mpp code to use common orion platform mpp. (diff) | |
download | linux-3cff484d4b264ff467a3b45c544cbbbab69f0bf8.tar.xz linux-3cff484d4b264ff467a3b45c544cbbbab69f0bf8.zip |
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.c | 5 |
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, u32 mpp_ctrl[mpp_nr_regs]; int i; - if (!variant_mask) - return; - printk(KERN_DEBUG "initial MPP regs:"); for (i = 0; i < mpp_nr_regs; i++) { 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, "number (%u)\n", num); continue; } - if (!(*mpp_list & variant_mask)) { + if (variant_mask & !(*mpp_list & variant_mask)) { printk(KERN_WARNING "orion_mpp_conf: requested MPP%u config " "unavailable on this hardware\n", num); |