diff options
author | Yang Yingliang | 2022-09-21 22:05:18 +0800 |
---|---|---|
committer | Jakub Kicinski | 2022-09-22 19:30:38 -0700 |
commit | 14b29ece30e53f9b380f146d5f4f9062131b0d65 (patch) | |
tree | b9a97ed8e71b204156678421056a01724c353419 /drivers/net/dsa | |
parent | f66d1ecc1ad4f75cce3aa9286d4c7f9a980f5a39 (diff) |
net: dsa: ar9331: remove unnecessary dev_set_drvdata()
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>
Diffstat (limited to 'drivers/net/dsa')
-rw-r--r-- | drivers/net/dsa/qca/ar9331.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/dsa/qca/ar9331.c b/drivers/net/dsa/qca/ar9331.c index 0796b7cf8cae..e7b98b864fa1 100644 --- 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) |