Skip to content

Commit

Permalink
net: fec_mpc52xx_phy: remove unnecessary dev_set_drvdata()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Libo Chen authored and David S. Miller committed Aug 21, 2013
1 parent 01007f5 commit dcbe8a1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/net/ethernet/freescale/fec_mpc52xx_phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dcbe8a1

Please sign in to comment.