summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/ak4613.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2022-06-03 16:05:10 +0200
committerMark Brown <broonie@kernel.org>2022-06-06 12:34:28 +0100
commit60391d788a221f1866492a71929483790b772676 (patch)
treea9e1286195f81f2a0fb2fb4ff41935a3b71321d1 /sound/soc/codecs/ak4613.c
parent50fd82b3a9a9335df5d50c7ddcb81c81d358c4fc (diff)
downloadlinux-60391d788a221f1866492a71929483790b772676.tar.gz
linux-60391d788a221f1866492a71929483790b772676.tar.bz2
linux-60391d788a221f1866492a71929483790b772676.zip
ASoC: ak4642: 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-2-u.kleine-koenig@pengutronix.de Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/ak4613.c')
-rw-r--r--sound/soc/codecs/ak4613.c6
1 files changed, 0 insertions, 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,
};