]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: sdw-mockup: Drop dummy remove function
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Fri, 12 Dec 2025 07:35:53 +0000 (08:35 +0100)
committerMark Brown <broonie@kernel.org>
Sun, 14 Dec 2025 10:37:36 +0000 (19:37 +0900)
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>
sound/soc/codecs/sdw-mockup.c

index 574c08b14f0c226b8f17fa94c697dd3197ef7cfe..b7e6546f1b5a259a8c185ad6abaf76cbf26fc56d 100644 (file)
@@ -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,
 };