net: freescale: ucc_geth: Fix build error from phy_device API change
authorAndrew Lunn <andrew@lunn.ch>
Tue, 12 Jan 2016 02:24:30 +0000 (03:24 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Jan 2016 04:27:26 +0000 (23:27 -0500)
dev has moved inside the new mdio structure.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/ucc_geth.c

index 0e7f24e..cbddbe2 100644 (file)
@@ -1716,7 +1716,7 @@ static void uec_configure_serdes(struct net_device *dev)
 
        phy_write(tbiphy, ENET_TBI_MII_CR, TBICR_SETTINGS);
 
-       put_device(&tbiphy->dev);
+       put_device(&tbiphy->mdio.dev);
 }
 
 /* Configure the PHY for dev.