net: dsa: sja1105: remove unnecessary spi_set_drvdata()
Remove unnecessary spi_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>
This commit is contained in:
parent
4f6ee77aeb
commit
ee08bf0d0a
|
@ -3351,8 +3351,6 @@ static void sja1105_remove(struct spi_device *spi)
|
|||
return;
|
||||
|
||||
dsa_unregister_switch(priv->ds);
|
||||
|
||||
spi_set_drvdata(spi, NULL);
|
||||
}
|
||||
|
||||
static void sja1105_shutdown(struct spi_device *spi)
|
||||
|
|
Loading…
Reference in New Issue