forked from Minki/linux
net: fec_mpc52xx_phy: remove unnecessary dev_set_drvdata()
Unnecessary dev_set_drvdata() is removed, because the driver core clears the driver data to NULL after device_release or on probe failure. Signed-off-by: Libo Chen <libo.chen@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
01007f5cfb
commit
dcbe8a1a42
@ -127,7 +127,6 @@ static int mpc52xx_fec_mdio_remove(struct platform_device *of)
|
||||
struct mpc52xx_fec_mdio_priv *priv = bus->priv;
|
||||
|
||||
mdiobus_unregister(bus);
|
||||
dev_set_drvdata(dev, NULL);
|
||||
iounmap(priv->regs);
|
||||
kfree(priv);
|
||||
mdiobus_free(bus);
|
||||
|
Loading…
Reference in New Issue
Block a user