projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
140212a
)
ASoC: wl1273: Drop empty platform remove function
author
Uwe Kleine-König
<u.kleine-koenig@pengutronix.de>
Mon, 12 Dec 2022 20:54:02 +0000
(21:54 +0100)
committer
Mark Brown
<broonie@kernel.org>
Sun, 25 Dec 2022 23:32:51 +0000
(23:32 +0000)
A remove callback just returning 0 is equivalent to no remove callback
at all. So drop the useless function.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link:
https://lore.kernel.org/r/20221212205406.3771071-12-u.kleine-koenig@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wl1273.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/wl1273.c
b/sound/soc/codecs/wl1273.c
index
626278e
..
737ca82
100644
(file)
--- a/
sound/soc/codecs/wl1273.c
+++ b/
sound/soc/codecs/wl1273.c
@@
-484,11
+484,6
@@
static int wl1273_platform_probe(struct platform_device *pdev)
&wl1273_dai, 1);
}
-static int wl1273_platform_remove(struct platform_device *pdev)
-{
- return 0;
-}
-
MODULE_ALIAS("platform:wl1273-codec");
static struct platform_driver wl1273_platform_driver = {
@@
-496,7
+491,6
@@
static struct platform_driver wl1273_platform_driver = {
.name = "wl1273-codec",
},
.probe = wl1273_platform_probe,
- .remove = wl1273_platform_remove,
};
module_platform_driver(wl1273_platform_driver);