diff options
author | Libo Chen <libo.chen@huawei.com> | 2013-08-21 03:02:22 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-21 15:27:04 -0400 |
commit | dcbe8a1a42cbd9488eda68f5a8bd1d90fc7ad8fe (patch) | |
tree | dfa3c43fafbeb66de1aa0cbd26f018a56c7e1017 /drivers/net/ethernet/freescale | |
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>
Diffstat (limited to 'drivers/net/ethernet/freescale')
-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) | |||
127 | struct mpc52xx_fec_mdio_priv *priv = bus->priv; | 127 | struct mpc52xx_fec_mdio_priv *priv = bus->priv; |
128 | 128 | ||
129 | mdiobus_unregister(bus); | 129 | mdiobus_unregister(bus); |
130 | dev_set_drvdata(dev, NULL); | ||
131 | iounmap(priv->regs); | 130 | iounmap(priv->regs); |
132 | kfree(priv); | 131 | kfree(priv); |
133 | mdiobus_free(bus); | 132 | mdiobus_free(bus); |