From: Andrew Lunn Date: Tue, 12 Jan 2016 02:24:30 +0000 (+0100) Subject: net: freescale: ucc_geth: Fix build error from phy_device API change X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5e431650f06a9d857fe1d61d92236fad678f7880;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git net: freescale: ucc_geth: Fix build error from phy_device API change dev has moved inside the new mdio structure. Signed-off-by: Andrew Lunn Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/freescale/ucc_geth.c b/drivers/net/ethernet/freescale/ucc_geth.c index 0e7f24ec3239..cbddbe2d0429 100644 --- a/drivers/net/ethernet/freescale/ucc_geth.c +++ b/drivers/net/ethernet/freescale/ucc_geth.c @@ -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.