projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebe4892
)
net: dsa: mv88e6060: remove unnecessary dev_set_drvdata()
author
Yang Yingliang
<yangyingliang@huawei.com>
Wed, 21 Sep 2022 14:05:15 +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/mv88e6060.c
patch
|
blob
|
history
diff --git
a/drivers/net/dsa/mv88e6060.c
b/drivers/net/dsa/mv88e6060.c
index
83dca91
..
fdda62d
100644
(file)
--- a/
drivers/net/dsa/mv88e6060.c
+++ b/
drivers/net/dsa/mv88e6060.c
@@
-297,8
+297,6
@@
static void mv88e6060_remove(struct mdio_device *mdiodev)
return;
dsa_unregister_switch(ds);
-
- dev_set_drvdata(&mdiodev->dev, NULL);
}
static void mv88e6060_shutdown(struct mdio_device *mdiodev)