Skip to content

Commit

Permalink
ASoc: wm8900: Drop empty spi_driver remove callback
Browse files Browse the repository at this point in the history
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: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20211020125726.22946-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Uwe Kleine-König authored and Mark Brown committed Oct 25, 2021
1 parent 824edd8 commit 03f0267
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions sound/soc/codecs/wm8900.c
Original file line number Diff line number Diff line change
Expand Up @@ -1252,17 +1252,11 @@ static int wm8900_spi_probe(struct spi_device *spi)
return ret;
}

static int wm8900_spi_remove(struct spi_device *spi)
{
return 0;
}

static struct spi_driver wm8900_spi_driver = {
.driver = {
.name = "wm8900",
},
.probe = wm8900_spi_probe,
.remove = wm8900_spi_remove,
};
#endif /* CONFIG_SPI_MASTER */

Expand Down

0 comments on commit 03f0267

Please sign in to comment.