ar71xx: ag71xx: remove MII interface setup code
[openwrt/staging/wigyori.git] / target / linux / ar71xx / files / drivers / net / ag71xx / ag71xx.h
index 1076d3c04e07cd20569aefd4ed63c257dcf5b8b4..5757e60ac15e7539a58251e0ed319e852b04f40b 100644 (file)
@@ -343,7 +343,6 @@ static inline int ag71xx_desc_pktlen(struct ag71xx_desc *desc)
 #define RX_STATUS_OF           BIT(2)  /* Rx Overflow */
 #define RX_STATUS_BE           BIT(3)  /* Bus Error */
 
-#define MII_CTRL_IF_MASK       3
 #define MII_CTRL_SPEED_SHIFT   4
 #define MII_CTRL_SPEED_MASK    3
 #define MII_CTRL_SPEED_10      0
@@ -436,17 +435,6 @@ static inline u32 ag71xx_mii_ctrl_rr(struct ag71xx *ag)
        return __raw_readl(ag->mii_ctrl);
 }
 
-static inline void ag71xx_mii_ctrl_set_if(struct ag71xx *ag,
-                                         unsigned int mii_if)
-{
-       u32 t;
-
-       t = ag71xx_mii_ctrl_rr(ag);
-       t &= ~(MII_CTRL_IF_MASK);
-       t |= (mii_if & MII_CTRL_IF_MASK);
-       ag71xx_mii_ctrl_wr(ag, t);
-}
-
 static inline void ag71xx_mii_ctrl_set_speed(struct ag71xx *ag,
                                             unsigned int speed)
 {