PXA can use EABI, too
[openwrt.git] / target / linux / generic-2.6 / files / drivers / net / phy / mvswitch.c
index 27c0920..834d312 100644 (file)
@@ -274,8 +274,8 @@ mvswitch_config_init(struct phy_device *pdev)
        }
 
        /* build the target list for the cpu port */
-       for (i = 0, vlmap = 0; i < ARRAY_SIZE(priv->vlans); i++)
-               vlmap |= priv->vlans[i];
+       for (i = 0; i < MV_PORTS; i++)
+               vlmap |= (1 << i);
 
        w16(pdev, MV_PORTREG(VLANMAP, MV_CPUPORT),
                MV_PORTVLAN_PORTS(vlmap)
This page took 0.020305 seconds and 4 git commands to generate.