Commit 6ca4b393 authored by Yang Yingliang's avatar Yang Yingliang Committed by Jakub Kicinski

net: dsa: b53: remove unnecessary spi_set_drvdata()

Remove unnecessary spi_set_drvdata() in b53_spi_remove(), the
driver_data will be set to NULL in device_unbind_cleanup() after
calling ->remove().
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20220705131733.351962-1-yangyingliang@huawei.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 69d7d257
...@@ -320,8 +320,6 @@ static void b53_spi_remove(struct spi_device *spi) ...@@ -320,8 +320,6 @@ static void b53_spi_remove(struct spi_device *spi)
if (dev) if (dev)
b53_switch_remove(dev); b53_switch_remove(dev);
spi_set_drvdata(spi, NULL);
} }
static void b53_spi_shutdown(struct spi_device *spi) static void b53_spi_shutdown(struct spi_device *spi)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment