projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69d7d25
)
net: dsa: b53: remove unnecessary spi_set_drvdata()
author
Yang Yingliang
<yangyingliang@huawei.com>
Tue, 5 Jul 2022 13:17:33 +0000
(21:17 +0800)
committer
Jakub Kicinski
<kuba@kernel.org>
Thu, 7 Jul 2022 02:49:59 +0000
(19:49 -0700)
Remove unnecessary spi_set_drvdata() in b53_spi_remove(), the
driver_data will be set to NULL in device_unbind_cleanup() after
calling ->remove().
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link:
https://lore.kernel.org/r/20220705131733.351962-1-yangyingliang@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/b53/b53_spi.c
patch
|
blob
|
history
diff --git
a/drivers/net/dsa/b53/b53_spi.c
b/drivers/net/dsa/b53/b53_spi.c
index
0e54b2a
..
308f15d
100644
(file)
--- a/
drivers/net/dsa/b53/b53_spi.c
+++ b/
drivers/net/dsa/b53/b53_spi.c
@@
-320,8
+320,6
@@
static void b53_spi_remove(struct spi_device *spi)
if (dev)
b53_switch_remove(dev);
-
- spi_set_drvdata(spi, NULL);
}
static void b53_spi_shutdown(struct spi_device *spi)