summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/ti/davinci_mdio.c
diff options
context:
space:
mode:
authorLibo Chen <libo.chen@huawei.com>2013-08-21 15:02:41 +0800
committerDavid S. Miller <davem@davemloft.net>2013-08-21 12:27:05 -0700
commit110a183c8a1c61b9de7b5c19421beb6e585181d4 (patch)
tree33ad8fa33070402cdcaf1903b16c194b9a84bae9 /drivers/net/ethernet/ti/davinci_mdio.c
parent0c671dc0c4979e69e0b342c8f4e80690660929db (diff)
downloadop-kernel-dev-110a183c8a1c61b9de7b5c19421beb6e585181d4.zip
op-kernel-dev-110a183c8a1c61b9de7b5c19421beb6e585181d4.tar.gz
net: davinci_mdio: 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/ti/davinci_mdio.c')
-rw-r--r--drivers/net/ethernet/ti/davinci_mdio.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/ti/davinci_mdio.c b/drivers/net/ethernet/ti/davinci_mdio.c
index 01b0cc5..7f85143 100644
--- a/drivers/net/ethernet/ti/davinci_mdio.c
+++ b/drivers/net/ethernet/ti/davinci_mdio.c
@@ -433,8 +433,6 @@ static int davinci_mdio_remove(struct platform_device *pdev)
pm_runtime_put_sync(&pdev->dev);
pm_runtime_disable(&pdev->dev);
- dev_set_drvdata(dev, NULL);
-
kfree(data);
return 0;
OpenPOWER on IntegriCloud