projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cce931
)
ASoC: da732x: Drop no-op remove function
author
Uwe Kleine-König
<u.kleine-koenig@pengutronix.de>
Fri, 3 Jun 2022 14:05:13 +0000
(16:05 +0200)
committer
Mark Brown
<broonie@kernel.org>
Mon, 6 Jun 2022 11:34:31 +0000
(12:34 +0100)
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-5-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/da732x.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/da732x.c
b/sound/soc/codecs/da732x.c
index f14cddf23f4271f7de848306c7992b317cd8f883..3f1cfee10df3f99652956b900524ffdbb826f070 100644
(file)
--- a/
sound/soc/codecs/da732x.c
+++ b/
sound/soc/codecs/da732x.c
@@
-1546,11
+1546,6
@@
err:
return ret;
}
-static int da732x_i2c_remove(struct i2c_client *client)
-{
- return 0;
-}
-
static const struct i2c_device_id da732x_i2c_id[] = {
{ "da7320", 0},
{ }
@@
-1562,7
+1557,6
@@
static struct i2c_driver da732x_i2c_driver = {
.name = "da7320",
},
.probe_new = da732x_i2c_probe,
- .remove = da732x_i2c_remove,
.id_table = da732x_i2c_id,
};