Commit 774b060d authored by Yang Yingliang's avatar Yang Yingliang Committed by Jakub Kicinski

net: dsa: vitesse-vsc73xx: remove unnecessary set_drvdata()

Remove unnecessary set_drvdata(NULL) function in ->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>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent ee08bf0d
...@@ -121,8 +121,6 @@ static int vsc73xx_platform_remove(struct platform_device *pdev) ...@@ -121,8 +121,6 @@ static int vsc73xx_platform_remove(struct platform_device *pdev)
vsc73xx_remove(&vsc_platform->vsc); vsc73xx_remove(&vsc_platform->vsc);
platform_set_drvdata(pdev, NULL);
return 0; return 0;
} }
......
...@@ -167,8 +167,6 @@ static void vsc73xx_spi_remove(struct spi_device *spi) ...@@ -167,8 +167,6 @@ static void vsc73xx_spi_remove(struct spi_device *spi)
return; return;
vsc73xx_remove(&vsc_spi->vsc); vsc73xx_remove(&vsc_spi->vsc);
spi_set_drvdata(spi, NULL);
} }
static void vsc73xx_spi_shutdown(struct spi_device *spi) static void vsc73xx_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