kernel: port b53 to use kernel 4.5+ API
[openwrt/staging/lynxis.git] / target / linux / generic / files / drivers / net / phy / b53 / b53_phy_fixup.c
index 72d1373d7f58ddf19856a7a656b346484318390c..e2f8a39ab658cf3433f662c3e021a8405b19364e 100644 (file)
 
 static int b53_phy_fixup(struct phy_device *dev)
 {
+       struct mii_bus *bus = dev->mdio.bus;
        u32 phy_id;
-       struct mii_bus *bus = dev->bus;
 
-       if (dev->addr != B53_PSEUDO_PHY)
+       if (dev->mdio.addr != B53_PSEUDO_PHY)
                return 0;
 
        /* read the first port's id */