Message ID | 20220118215054.2629314-5-tobias@waldekranz.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 3f7c239c7844d2044ed399399d97a5f1c6008e1b |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | net/fsl: xgmac_mdio: Add workaround for erratum A-009885 | expand |
diff --git a/drivers/net/ethernet/freescale/xgmac_mdio.c b/drivers/net/ethernet/freescale/xgmac_mdio.c index bf566ac3195b..266e562bd67a 100644 --- a/drivers/net/ethernet/freescale/xgmac_mdio.c +++ b/drivers/net/ethernet/freescale/xgmac_mdio.c @@ -331,9 +331,10 @@ static int xgmac_mdio_probe(struct platform_device *pdev) static int xgmac_mdio_remove(struct platform_device *pdev) { struct mii_bus *bus = platform_get_drvdata(pdev); + struct mdio_fsl_priv *priv = bus->priv; mdiobus_unregister(bus); - iounmap(bus->priv); + iounmap(priv->mdio_base); mdiobus_free(bus); return 0;