summaryrefslogtreecommitdiff
path: root/target/linux/generic
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2012-03-22 13:07:34 +0000
committerJohn Crispin <john@openwrt.org>2012-03-22 13:07:34 +0000
commitf35b9a9a4cfa0b9f81201988a7921911e922eabb (patch)
treef831d58e13019280dbbacf5af53a2296958e16f6 /target/linux/generic
parentd1bd1b4e27af0ac48f19c4156ecd9313fcfc07b5 (diff)
downloadmtk-20170518-f35b9a9a4cfa0b9f81201988a7921911e922eabb.zip
mtk-20170518-f35b9a9a4cfa0b9f81201988a7921911e922eabb.tar.gz
mtk-20170518-f35b9a9a4cfa0b9f81201988a7921911e922eabb.tar.bz2
fixes breakage introduced in 776722ce36ac95877efb7fd771dde2f6ffc96433
SVN-Revision: 31054
Diffstat (limited to 'target/linux/generic')
-rw-r--r--target/linux/generic/files/drivers/net/phy/ar8216.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/ar8216.c b/target/linux/generic/files/drivers/net/phy/ar8216.c
index 93d3007..7214fa2 100644
--- a/target/linux/generic/files/drivers/net/phy/ar8216.c
+++ b/target/linux/generic/files/drivers/net/phy/ar8216.c
@@ -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) |