Commit 60391d78 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Mark Brown

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: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20220603140513.131142-2-u.kleine-koenig@pengutronix.deSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 50fd82b3
...@@ -919,18 +919,12 @@ static int ak4613_i2c_probe(struct i2c_client *i2c) ...@@ -919,18 +919,12 @@ static int ak4613_i2c_probe(struct i2c_client *i2c)
&ak4613_dai, 1); &ak4613_dai, 1);
} }
static int ak4613_i2c_remove(struct i2c_client *client)
{
return 0;
}
static struct i2c_driver ak4613_i2c_driver = { static struct i2c_driver ak4613_i2c_driver = {
.driver = { .driver = {
.name = "ak4613-codec", .name = "ak4613-codec",
.of_match_table = ak4613_of_match, .of_match_table = ak4613_of_match,
}, },
.probe_new = ak4613_i2c_probe, .probe_new = ak4613_i2c_probe,
.remove = ak4613_i2c_remove,
.id_table = ak4613_i2c_id, .id_table = ak4613_i2c_id,
}; };
......
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