Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dcbe8a1a authored by Libo Chen's avatar Libo Chen Committed by David S. Miller
Browse files

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: default avatarLibo Chen <libo.chen@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 01007f5c
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);