summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/allwinner/sun4i-emac.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-06-04 04:31:19 +0400
committerDavid S. Miller <davem@davemloft.net>2013-06-05 04:40:10 +0400
commitaff5c3557cf72fcad913d8b4b44b055a4e034bb5 (patch)
tree62ecf9e4543deac763a384f342a9d2ddebae48be /drivers/net/ethernet/allwinner/sun4i-emac.c
parent7a3e2585f2fd543ac7284a1f09641628f730f720 (diff)
downloadlinux-aff5c3557cf72fcad913d8b4b44b055a4e034bb5.tar.xz
net: sun4i-emac: Remove redundant platform_set_drvdata()
Commit 0998d06310 (device-core: Ensure drvdata = NULL when no driver is bound) removes the need to set driver data field to NULL. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Cc: Stefan Roese <sr@denx.de> Cc: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/allwinner/sun4i-emac.c')
-rw-r--r--drivers/net/ethernet/allwinner/sun4i-emac.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/allwinner/sun4i-emac.c b/drivers/net/ethernet/allwinner/sun4i-emac.c
index 0bb2f4af9952..e9c8dbe4c88f 100644
--- a/drivers/net/ethernet/allwinner/sun4i-emac.c
+++ b/drivers/net/ethernet/allwinner/sun4i-emac.c
@@ -898,8 +898,6 @@ static int emac_remove(struct platform_device *pdev)
{
struct net_device *ndev = platform_get_drvdata(pdev);
- platform_set_drvdata(pdev, NULL);
-
unregister_netdev(ndev);
free_netdev(ndev);