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