diff options
-rw-r--r-- | drivers/net/ixp2000/enp2611.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ixp2000/enp2611.c b/drivers/net/ixp2000/enp2611.c index f0cc23d423ef..bc29dbeec318 100644 --- a/drivers/net/ixp2000/enp2611.c +++ b/drivers/net/ixp2000/enp2611.c | |||
@@ -151,12 +151,12 @@ static void enp2611_check_link_status(unsigned long __dummy) | |||
151 | dev = nds[i]; | 151 | dev = nds[i]; |
152 | 152 | ||
153 | status = pm3386_is_link_up(i); | 153 | status = pm3386_is_link_up(i); |
154 | if (status && !netif_carrier_ok(nds[i])) { | 154 | if (status && !netif_carrier_ok(dev)) { |
155 | pm3386_enable_tx(i); | 155 | pm3386_enable_tx(i); |
156 | caleb_enable_tx(i); | 156 | caleb_enable_tx(i); |
157 | netif_carrier_on(nds[i]); | 157 | netif_carrier_on(dev); |
158 | } else if (!status && netif_carrier_ok(nds[i])) { | 158 | } else if (!status && netif_carrier_ok(dev)) { |
159 | netif_carrier_off(nds[i]); | 159 | netif_carrier_off(dev); |
160 | caleb_disable_tx(i); | 160 | caleb_disable_tx(i); |
161 | pm3386_disable_tx(i); | 161 | pm3386_disable_tx(i); |
162 | } | 162 | } |