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:
f66d1ec
)
net: dsa: ar9331: remove unnecessary dev_set_drvdata()
author
Yang Yingliang
<yangyingliang@huawei.com>
Wed, 21 Sep 2022 14:05:18 +0000
(22:05 +0800)
committer
Jakub Kicinski
<kuba@kernel.org>
Fri, 23 Sep 2022 02:30:38 +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/qca/ar9331.c
patch
|
blob
|
history
diff --git
a/drivers/net/dsa/qca/ar9331.c
b/drivers/net/dsa/qca/ar9331.c
index 0796b7cf8cae2db8face3e7018efafbbdd4b51c9..e7b98b864fa1690e2cb58c17d60cfca0fa835544 100644
(file)
--- a/
drivers/net/dsa/qca/ar9331.c
+++ b/
drivers/net/dsa/qca/ar9331.c
@@
-1099,8
+1099,6
@@
static void ar9331_sw_remove(struct mdio_device *mdiodev)
dsa_unregister_switch(&priv->ds);
reset_control_assert(priv->sw_reset);
-
- dev_set_drvdata(&mdiodev->dev, NULL);
}
static void ar9331_sw_shutdown(struct mdio_device *mdiodev)