projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24d64ce
)
net: dsa: rzn1-a5psw: remove unnecessary platform_set_drvdata()
author
Yang Yingliang
<yangyingliang@huawei.com>
Wed, 21 Sep 2022 14:05:21 +0000
(22:05 +0800)
committer
Jakub Kicinski
<kuba@kernel.org>
Fri, 23 Sep 2022 02:30:39 +0000
(19:30 -0700)
Remove unnecessary platform_set_drvdata() in ->remove(), the driver_data
will be set to NULL in device_unbind_cleanup() after calling ->remove().
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/rzn1_a5psw.c
patch
|
blob
|
history
diff --git
a/drivers/net/dsa/rzn1_a5psw.c
b/drivers/net/dsa/rzn1_a5psw.c
index
0744e81
..
ed413d5
100644
(file)
--- a/
drivers/net/dsa/rzn1_a5psw.c
+++ b/
drivers/net/dsa/rzn1_a5psw.c
@@
-1025,8
+1025,6
@@
static int a5psw_remove(struct platform_device *pdev)
clk_disable_unprepare(a5psw->hclk);
clk_disable_unprepare(a5psw->clk);
- platform_set_drvdata(pdev, NULL);
-
return 0;
}