aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/freescale/xgmac_mdio.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethernet/freescale/xgmac_mdio.c')
-rw-r--r--drivers/net/ethernet/freescale/xgmac_mdio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/freescale/xgmac_mdio.c b/drivers/net/ethernet/freescale/xgmac_mdio.c
index 418068b941b1..c1b6e7e31aac 100644
--- a/drivers/net/ethernet/freescale/xgmac_mdio.c
+++ b/drivers/net/ethernet/freescale/xgmac_mdio.c
@@ -227,7 +227,7 @@ static int xgmac_mdio_probe(struct platform_device *pdev)
227 goto err_registration; 227 goto err_registration;
228 } 228 }
229 229
230 dev_set_drvdata(&pdev->dev, bus); 230 platform_set_drvdata(pdev, bus);
231 231
232 return 0; 232 return 0;
233 233
@@ -242,7 +242,7 @@ err_ioremap:
242 242
243static int xgmac_mdio_remove(struct platform_device *pdev) 243static int xgmac_mdio_remove(struct platform_device *pdev)
244{ 244{
245 struct mii_bus *bus = dev_get_drvdata(&pdev->dev); 245 struct mii_bus *bus = platform_get_drvdata(pdev);
246 246
247 mdiobus_unregister(bus); 247 mdiobus_unregister(bus);
248 iounmap(bus->priv); 248 iounmap(bus->priv);