From: Herve Codina Date: Wed, 13 May 2026 08:16:49 +0000 (+0200) Subject: ASoC: simple-amplifier: Remove CONFIG_OF flag and of_match_ptr() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c562adb159ea3f4e5fdf4074e512ae369b4c22b;p=thirdparty%2Fkernel%2Flinux.git ASoC: simple-amplifier: Remove CONFIG_OF flag and of_match_ptr() 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 Link: https://patch.msgid.link/20260513081702.317117-6-herve.codina@bootlin.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/simple-amplifier.c b/sound/soc/codecs/simple-amplifier.c index 5b44bcfef49e9..215318ff62fc6 100644 --- a/sound/soc/codecs/simple-amplifier.c +++ b/sound/soc/codecs/simple-amplifier.c @@ -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, };