diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-06-03 20:31:19 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-06-04 20:40:10 -0400 |
commit | aff5c3557cf72fcad913d8b4b44b055a4e034bb5 (patch) | |
tree | 62ecf9e4543deac763a384f342a9d2ddebae48be /drivers/net/ethernet/allwinner | |
parent | 7a3e2585f2fd543ac7284a1f09641628f730f720 (diff) |
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.c | 2 |
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) | |||
898 | { | 898 | { |
899 | struct net_device *ndev = platform_get_drvdata(pdev); | 899 | struct net_device *ndev = platform_get_drvdata(pdev); |
900 | 900 | ||
901 | platform_set_drvdata(pdev, NULL); | ||
902 | |||
903 | unregister_netdev(ndev); | 901 | unregister_netdev(ndev); |
904 | free_netdev(ndev); | 902 | free_netdev(ndev); |
905 | 903 | ||