]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: simple-amplifier: Remove CONFIG_OF flag and of_match_ptr()
authorHerve Codina <herve.codina@bootlin.com>
Wed, 13 May 2026 08:16:49 +0000 (10:16 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 18 May 2026 16:44:05 +0000 (17:44 +0100)
The simple-amplifier Use CONFIG_OF flag for its of_device_id table
and of_match_ptr() when it assigns the table in the driver declaration.

This is no more needed. Drop them.

Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Link: https://patch.msgid.link/20260513081702.317117-6-herve.codina@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/simple-amplifier.c

index 5b44bcfef49e980d2afee3018d79e12d29fccbed..215318ff62fc65175751af2690200bf6672e493d 100644 (file)
@@ -86,19 +86,17 @@ static int simple_amp_probe(struct platform_device *pdev)
                                               NULL, 0);
 }
 
-#ifdef CONFIG_OF
 static const struct of_device_id simple_amp_ids[] = {
        { .compatible = "dioo,dio2125", },
        { .compatible = "simple-audio-amplifier", },
        { }
 };
 MODULE_DEVICE_TABLE(of, simple_amp_ids);
-#endif
 
 static struct platform_driver simple_amp_driver = {
        .driver = {
                .name = "simple-amplifier",
-               .of_match_table = of_match_ptr(simple_amp_ids),
+               .of_match_table = simple_amp_ids,
        },
        .probe = simple_amp_probe,
 };