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:
0c671dc
)
net: davinci_mdio: remove unnecessary dev_set_drvdata()
author
Libo Chen
<libo.chen@huawei.com>
Wed, 21 Aug 2013 07:02:41 +0000
(15:02 +0800)
committer
David S. Miller
<davem@davemloft.net>
Wed, 21 Aug 2013 19:27:05 +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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/davinci_mdio.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/ti/davinci_mdio.c
b/drivers/net/ethernet/ti/davinci_mdio.c
index 01b0cc5a4acff11e98783cca81c02ddf0a416479..7f851438486379de0558e4dc5693d08fd2e1f0a9 100644
(file)
--- a/
drivers/net/ethernet/ti/davinci_mdio.c
+++ b/
drivers/net/ethernet/ti/davinci_mdio.c
@@
-433,8
+433,6
@@
static int davinci_mdio_remove(struct platform_device *pdev)
pm_runtime_put_sync(&pdev->dev);
pm_runtime_disable(&pdev->dev);
- dev_set_drvdata(dev, NULL);
-
kfree(data);
return 0;