lan78xx: Remove not defined MAC_CR_GMII_EN_ bit from MAC_CR.
authorWoojung.Huh@microchip.com <Woojung.Huh@microchip.com>
Wed, 16 Sep 2015 23:41:19 +0000 (23:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Sep 2015 05:15:37 +0000 (22:15 -0700)
Remove not defined MAC_CR_GMII_EN_ bit from MAC_CR.

Signed-off-by: Woojung Huh <woojung.huh@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/lan78xx.c
drivers/net/usb/lan78xx.h

index dce55636bc9b63128c550b2ed4f1f6d0a532f2f2..6a70a72b565d88e481b41a9c5c28d5a94f89473a 100644 (file)
@@ -1909,10 +1909,7 @@ static int lan78xx_reset(struct lan78xx_net *dev)
        } while ((buf & PMT_CTL_PHY_RST_) || !(buf & PMT_CTL_READY_));
 
        ret = lan78xx_read_reg(dev, MAC_CR, &buf);
-
-       buf |= MAC_CR_GMII_EN_;
        buf |= MAC_CR_AUTO_DUPLEX_ | MAC_CR_AUTO_SPEED_;
-
        ret = lan78xx_write_reg(dev, MAC_CR, buf);
 
        /* enable PHY interrupts */
index e0a5a8f529c16fdc246cf64dc3206426c36e2069..a93fb653e7c52f415bd0aae99f7cd2619c8cf47b 100644 (file)
 #define LTM_INACTIVE1_TIMER10_         (0x0000FFFF)
 
 #define MAC_CR                         (0x100)
-#define MAC_CR_GMII_EN_                        (0x00080000)
 #define MAC_CR_EEE_TX_CLK_STOP_EN_     (0x00040000)
 #define MAC_CR_EEE_EN_                 (0x00020000)
 #define MAC_CR_EEE_TLAR_EN_            (0x00010000)