ARM: orion5x: fixup 5181 MPP mask check
authorImre Kaloz <kaloz@openwrt.org>
Mon, 18 Jul 2011 20:05:12 +0000 (22:05 +0200)
committerNicolas Pitre <nico@fluxnic.net>
Mon, 18 Jul 2011 20:17:41 +0000 (16:17 -0400)
During the refactoring of the Orion MPP code, the detection for
the 5181l as been used to select the 5181 MPP mask, which is wrong.
Select the 5181 mask for all 5181 variants.

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
arch/arm/mach-orion5x/mpp.c

index f12c41b98d46805a05a98ccfb2878b8bdcb10a2c..b6ddd7a5db6ac77eb63de44f4cfd6d9f2b6c8937 100644 (file)
@@ -24,7 +24,7 @@ static unsigned int __init orion5x_variant(void)
 
        orion5x_pcie_id(&dev, &rev);
 
-       if (dev == MV88F5181_DEV_ID && rev >= MV88F5181L_REV_A0)
+       if (dev == MV88F5181_DEV_ID)
                return MPP_F5181_MASK;
 
        if (dev == MV88F5182_DEV_ID)