projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3525ecc
)
net: dsa: mt7530: remove unnecessary dev_set_drvdata()
author
Yang Yingliang
<yangyingliang@huawei.com>
Wed, 21 Sep 2022 14:05:14 +0000
(22:05 +0800)
committer
Jakub Kicinski
<kuba@kernel.org>
Fri, 23 Sep 2022 02:30:37 +0000
(19:30 -0700)
Remove unnecessary dev_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/mt7530.c
patch
|
blob
|
history
diff --git
a/drivers/net/dsa/mt7530.c
b/drivers/net/dsa/mt7530.c
index 835807911be019d78c7b9ac416349f444873ec77..a6cb5b0406fe02b93f1ec98943e5109ef697fdad 100644
(file)
--- a/
drivers/net/dsa/mt7530.c
+++ b/
drivers/net/dsa/mt7530.c
@@
-3300,8
+3300,6
@@
mt7530_remove(struct mdio_device *mdiodev)
dsa_unregister_switch(priv->ds);
mutex_destroy(&priv->reg_mutex);
-
- dev_set_drvdata(&mdiodev->dev, NULL);
}
static void mt7530_shutdown(struct mdio_device *mdiodev)