projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46c21e2
)
net: emac: remove unnecessary dev_set_drvdata()
author
Wei Yongjun
<
[email protected]
>
Thu, 15 Sep 2016 02:25:52 +0000
(
02:25
+0000)
committer
David S. Miller
<
[email protected]
>
Fri, 16 Sep 2016 08:25:50 +0000
(
04:25
-0400)
The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.
Signed-off-by: Wei Yongjun <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/qualcomm/emac/emac.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/qualcomm/emac/emac.c
b/drivers/net/ethernet/qualcomm/emac/emac.c
index 56e0a9f1c5ec064e990a6577729e924a7508f5fe..42d2d233b60fbdb6d4a7608635508e27d83a8578 100644
(file)
--- a/
drivers/net/ethernet/qualcomm/emac/emac.c
+++ b/
drivers/net/ethernet/qualcomm/emac/emac.c
@@
-722,7
+722,6
@@
static int emac_remove(struct platform_device *pdev)
mdiobus_unregister(adpt->mii_bus);
free_netdev(netdev);
- dev_set_drvdata(&pdev->dev, NULL);
return 0;
}