projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a291ee
)
ASoC: lm49453: Drop no-op remove function
author
Uwe Kleine-König
<u.kleine-koenig@pengutronix.de>
Fri, 3 Jun 2022 14:05:12 +0000
(16:05 +0200)
committer
Mark Brown
<broonie@kernel.org>
Mon, 6 Jun 2022 11:34:30 +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-4-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/lm49453.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/lm49453.c
b/sound/soc/codecs/lm49453.c
index bd0078e4499bb52ab5e87cfab025e747932c61d0..c4900ada861849f6f0970103638db7fa9b0f468b 100644
(file)
--- 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,
};