aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/allwinner
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-06-04 00:31:19 +0000
committerDavid S. Miller <davem@davemloft.net>2013-06-04 17:40:10 -0700
commitaff5c3557cf72fcad913d8b4b44b055a4e034bb5 (patch)
tree62ecf9e4543deac763a384f342a9d2ddebae48be /drivers/net/ethernet/allwinner
parentnet: emaclite: Use platform resource table (diff)
downloadlinux-dev-aff5c3557cf72fcad913d8b4b44b055a4e034bb5.tar.xz
linux-dev-aff5c3557cf72fcad913d8b4b44b055a4e034bb5.zip
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')
-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);