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:
7d9a875
)
net: xilinx_emaclite: remove unnecessary dev_set_drvdata()
author
Libo Chen
<libo.chen@huawei.com>
Wed, 21 Aug 2013 07:02:36 +0000
(15:02 +0800)
committer
David S. Miller
<davem@davemloft.net>
Wed, 21 Aug 2013 19:27:04 +0000
(12:27 -0700)
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>
Acked-by: Michal Simek <monstr@monstr.eu>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/xilinx_emaclite.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/xilinx/xilinx_emaclite.c
b/drivers/net/ethernet/xilinx/xilinx_emaclite.c
index 7c1ccbcb47be230009fb86ee259dcfb1f68df848..4c619ea5189fc22308b8fe36851824e72eaad0ab 100644
(file)
--- a/
drivers/net/ethernet/xilinx/xilinx_emaclite.c
+++ b/
drivers/net/ethernet/xilinx/xilinx_emaclite.c
@@
-1249,7
+1249,6
@@
static int xemaclite_of_remove(struct platform_device *of_dev)
lp->phy_node = NULL;
xemaclite_remove_ndev(ndev, of_dev);
- dev_set_drvdata(dev, NULL);
return 0;
}