diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2022-06-03 16:05:11 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-06-06 12:34:29 +0100 |
commit | 8a291eebeb633316edad2e80537a3c7df83ee8dc (patch) | |
tree | 9781fd1508ff246cb18eac91a5cebb477d4dabd9 /sound/soc/codecs/da7219.c | |
parent | 60391d788a221f1866492a71929483790b772676 (diff) | |
download | linux-8a291eebeb633316edad2e80537a3c7df83ee8dc.tar.gz |
ASoC: da7219: 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-3-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/da7219.c')
-rw-r--r-- | sound/soc/codecs/da7219.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sound/soc/codecs/da7219.c b/sound/soc/codecs/da7219.c index 7fdef38ed8cd..c18f76f370fc 100644 --- a/sound/soc/codecs/da7219.c +++ b/sound/soc/codecs/da7219.c @@ -2693,11 +2693,6 @@ static int da7219_i2c_probe(struct i2c_client *i2c) return ret; } -static int da7219_i2c_remove(struct i2c_client *client) -{ - return 0; -} - static const struct i2c_device_id da7219_i2c_id[] = { { "da7219", }, { } @@ -2711,7 +2706,6 @@ static struct i2c_driver da7219_i2c_driver = { .acpi_match_table = ACPI_PTR(da7219_acpi_match), }, .probe_new = da7219_i2c_probe, - .remove = da7219_i2c_remove, .id_table = da7219_i2c_id, }; |