summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/freescale/ucc_geth.c
diff options
context:
space:
mode:
authorLibo Chen <libo.chen@huawei.com>2013-08-21 09:02:18 +0200
committerDavid S. Miller <davem@davemloft.net>2013-08-21 21:27:04 +0200
commit01007f5cfb441ca5f705009ba51ea50be4bc7dc7 (patch)
treea87c8e80abf9d2ed3b1d4405791b671a03e1ddda /drivers/net/ethernet/freescale/ucc_geth.c
parentnet: fsl_pq_mdio: remove unnecessary dev_set_drvdata() (diff)
downloadlinux-01007f5cfb441ca5f705009ba51ea50be4bc7dc7.tar.xz
linux-01007f5cfb441ca5f705009ba51ea50be4bc7dc7.zip
net: ucc_geth: 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/ucc_geth.c')
-rw-r--r--drivers/net/ethernet/freescale/ucc_geth.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/ucc_geth.c b/drivers/net/ethernet/freescale/ucc_geth.c
index 533885c40747..5930c39672db 100644
--- a/drivers/net/ethernet/freescale/ucc_geth.c
+++ b/drivers/net/ethernet/freescale/ucc_geth.c
@@ -3917,7 +3917,6 @@ static int ucc_geth_remove(struct platform_device* ofdev)
unregister_netdev(dev);
free_netdev(dev);
ucc_geth_memclean(ugeth);
- dev_set_drvdata(device, NULL);
return 0;
}