[PATCH 1/4] ASoC: ak4642: Drop no-op remove function

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Fri Jun 3 16:05:10 CEST 2022


A remove callback that just returns 0 is equivalent to no callback at all
as can be seen in i2c_device_remove(). So simplify accordingly.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
---
Previous submission:

https://lore.kernel.org/alsa-devel/20220526134239.1593877-1-u.kleine-koenig@pengutronix.de

 sound/soc/codecs/ak4613.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/sound/soc/codecs/ak4613.c b/sound/soc/codecs/ak4613.c
index 55e773f92122..648208d40d06 100644
--- a/sound/soc/codecs/ak4613.c
+++ b/sound/soc/codecs/ak4613.c
@@ -919,18 +919,12 @@ static int ak4613_i2c_probe(struct i2c_client *i2c)
 				      &ak4613_dai, 1);
 }
 
-static int ak4613_i2c_remove(struct i2c_client *client)
-{
-	return 0;
-}
-
 static struct i2c_driver ak4613_i2c_driver = {
 	.driver = {
 		.name = "ak4613-codec",
 		.of_match_table = ak4613_of_match,
 	},
 	.probe_new	= ak4613_i2c_probe,
-	.remove		= ak4613_i2c_remove,
 	.id_table	= ak4613_i2c_id,
 };
 
-- 
2.36.1



More information about the Alsa-devel mailing list