summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/lm49453.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2022-06-03 16:05:12 +0200
committerMark Brown <broonie@kernel.org>2022-06-06 12:34:30 +0100
commit3cce931a5e4487f7339be559e2ea032478be021a (patch)
tree1c2846113fa9e2ebde019c54f39f51a37421c8f1 /sound/soc/codecs/lm49453.c
parent8a291eebeb633316edad2e80537a3c7df83ee8dc (diff)
downloadlinux-3cce931a5e4487f7339be559e2ea032478be021a.tar.gz
linux-3cce931a5e4487f7339be559e2ea032478be021a.tar.bz2
linux-3cce931a5e4487f7339be559e2ea032478be021a.zip
ASoC: lm49453: Drop no-op remove function
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@pengutronix.de> Link: https://lore.kernel.org/r/20220603140513.131142-4-u.kleine-koenig@pengutronix.de Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/lm49453.c')
-rw-r--r--sound/soc/codecs/lm49453.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sound/soc/codecs/lm49453.c b/sound/soc/codecs/lm49453.c
index bd0078e4499b..c4900ada8618 100644
--- a/sound/soc/codecs/lm49453.c
+++ b/sound/soc/codecs/lm49453.c
@@ -1442,11 +1442,6 @@ static int lm49453_i2c_probe(struct i2c_client *i2c)
return ret;
}
-static int lm49453_i2c_remove(struct i2c_client *client)
-{
- return 0;
-}
-
static const struct i2c_device_id lm49453_i2c_id[] = {
{ "lm49453", 0 },
{ }
@@ -1458,7 +1453,6 @@ static struct i2c_driver lm49453_i2c_driver = {
.name = "lm49453",
},
.probe_new = lm49453_i2c_probe,
- .remove = lm49453_i2c_remove,
.id_table = lm49453_i2c_id,
};