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:
Libo Chen 2013-08-21 15:02:22 +08:00 committed by David S. Miller
parent 01007f5cfb
commit dcbe8a1a42

View File

@ -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);