diff options
author | Libo Chen <libo.chen@huawei.com> | 2013-08-21 15:02:22 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-21 12:27:04 -0700 |
commit | dcbe8a1a42cbd9488eda68f5a8bd1d90fc7ad8fe (patch) | |
tree | dfa3c43fafbeb66de1aa0cbd26f018a56c7e1017 | |
parent | 01007f5cfb441ca5f705009ba51ea50be4bc7dc7 (diff) |
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>
-rw-r--r-- | drivers/net/ethernet/freescale/fec_mpc52xx_phy.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/fec_mpc52xx_phy.c b/drivers/net/ethernet/freescale/fec_mpc52xx_phy.c index eb447971ed4f..e0528900db02 100644 --- a/drivers/net/ethernet/freescale/fec_mpc52xx_phy.c +++ b/drivers/net/ethernet/freescale/fec_mpc52xx_phy.c @@ -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); |