OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f6ee77
)
net: dsa: sja1105: remove unnecessary spi_set_drvdata()
author
Yang Yingliang
<yangyingliang@huawei.com>
Wed, 21 Sep 2022 14:05:22 +0000
(22:05 +0800)
committer
Jakub Kicinski
<kuba@kernel.org>
Fri, 23 Sep 2022 02:30:39 +0000
(19:30 -0700)
Remove unnecessary spi_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/sja1105/sja1105_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/dsa/sja1105/sja1105_main.c
b/drivers/net/dsa/sja1105/sja1105_main.c
index
b03d0d0
..
4126661
100644
(file)
--- a/
drivers/net/dsa/sja1105/sja1105_main.c
+++ b/
drivers/net/dsa/sja1105/sja1105_main.c
@@
-3351,8
+3351,6
@@
static void sja1105_remove(struct spi_device *spi)
return;
dsa_unregister_switch(priv->ds);
-
- spi_set_drvdata(spi, NULL);
}
static void sja1105_shutdown(struct spi_device *spi)