diff options
author | Libo Chen <libo.chen@huawei.com> | 2013-08-21 09:02:45 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-21 21:27:05 +0200 |
commit | e6b0260c2a154948be825b34e68135c127123d5a (patch) | |
tree | b0ca76c9727c56a977137f8176732716bf42ee37 /drivers/net/ethernet/ibm/emac | |
parent | net: davinci_mdio: remove unnecessary dev_set_drvdata() (diff) | |
download | linux-e6b0260c2a154948be825b34e68135c127123d5a.tar.xz linux-e6b0260c2a154948be825b34e68135c127123d5a.zip |
net: emac: 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/ibm/emac')
-rw-r--r-- | drivers/net/ethernet/ibm/emac/core.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/ibm/emac/core.c b/drivers/net/ethernet/ibm/emac/core.c index d300a0c0eafc..2d3b064d6924 100644 --- a/drivers/net/ethernet/ibm/emac/core.c +++ b/drivers/net/ethernet/ibm/emac/core.c @@ -2955,8 +2955,6 @@ static int emac_remove(struct platform_device *ofdev) DBG(dev, "remove" NL); - dev_set_drvdata(&ofdev->dev, NULL); - unregister_netdev(dev->ndev); cancel_work_sync(&dev->reset_work); |