[ar8216] fixes breakage introduced in 776722ce36ac95877efb7fd771dde2f6ffc96433
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 22 Mar 2012 13:07:34 +0000 (13:07 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 22 Mar 2012 13:07:34 +0000 (13:07 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31054 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/generic/files/drivers/net/phy/ar8216.c

index 93d3007..7214fa2 100644 (file)
@@ -442,8 +442,8 @@ ar8216_init_port(struct ar8216_priv *priv, int port)
        if (port == AR8216_PORT_CPU) {
                priv->write(priv, AR8216_REG_PORT_STATUS(port),
                        AR8216_PORT_STATUS_LINK_UP |
-                       ar8xxx_has_gige(priv) ? AR8216_PORT_SPEED_1000M :
-                                               AR8216_PORT_SPEED_100M |
+                       (ar8xxx_has_gige(priv) ?
+                                AR8216_PORT_SPEED_1000M : AR8216_PORT_SPEED_100M) |
                        AR8216_PORT_STATUS_TXMAC |
                        AR8216_PORT_STATUS_RXMAC |
                        ((priv->chip_type == AR8316) ? AR8216_PORT_STATUS_RXFLOW : 0) |
This page took 0.024707 seconds and 4 git commands to generate.