Commit 8b27cb2e authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Mark Brown

ASoc: wm8731: Drop empty spi_driver remove callback

A driver with a remove callback that just returns 0 behaves identically
to a driver with no remove callback at all. So simplify accordingly.
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20211020125803.23117-1-u.kleine-koenig@pengutronix.deSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent a6d968a3
...@@ -713,18 +713,12 @@ static int wm8731_spi_probe(struct spi_device *spi) ...@@ -713,18 +713,12 @@ static int wm8731_spi_probe(struct spi_device *spi)
return 0; return 0;
} }
static int wm8731_spi_remove(struct spi_device *spi)
{
return 0;
}
static struct spi_driver wm8731_spi_driver = { static struct spi_driver wm8731_spi_driver = {
.driver = { .driver = {
.name = "wm8731", .name = "wm8731",
.of_match_table = wm8731_of_match, .of_match_table = wm8731_of_match,
}, },
.probe = wm8731_spi_probe, .probe = wm8731_spi_probe,
.remove = wm8731_spi_remove,
}; };
#endif /* CONFIG_SPI_MASTER */ #endif /* CONFIG_SPI_MASTER */
......
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