summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>2025-12-12 08:35:53 +0100
committerMark Brown <broonie@kernel.org>2025-12-14 19:37:36 +0900
commit81acbdc51bbbec822a1525481f2f70677c47aee0 (patch)
tree7432525d5520d2ced6ebf2173f4f5f70c9faaf5c
parentae9ccaed3f6701ee0fe40ad919516e0aa0844f21 (diff)
ASoC: sdw-mockup: Drop dummy remove function
A remove callback is optional and having no such function has the same semantic as one returning zero (and other return values are effectively ignored). This allows to remove the remove function without replacement. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com> Link: https://patch.msgid.link/20251212073555.1065284-2-u.kleine-koenig@baylibre.com Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/codecs/sdw-mockup.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sound/soc/codecs/sdw-mockup.c b/sound/soc/codecs/sdw-mockup.c
index 574c08b14f0c..b7e6546f1b5a 100644
--- a/sound/soc/codecs/sdw-mockup.c
+++ b/sound/soc/codecs/sdw-mockup.c
@@ -237,11 +237,6 @@ static int sdw_mockup_sdw_probe(struct sdw_slave *slave,
return ret;
}
-static int sdw_mockup_sdw_remove(struct sdw_slave *slave)
-{
- return 0;
-}
-
/*
* Intel reserved parts ID with the following mapping expected:
* 0xAAAA: generic full-duplex codec
@@ -264,7 +259,6 @@ static struct sdw_driver sdw_mockup_sdw_driver = {
.name = "sdw-mockup",
},
.probe = sdw_mockup_sdw_probe,
- .remove = sdw_mockup_sdw_remove,
.ops = &sdw_mockup_slave_ops,
.id_table = sdw_mockup_id,
};