summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHerve Codina <herve.codina@bootlin.com>2026-05-13 11:16:49 +0300
committerMark Brown <broonie@kernel.org>2026-05-18 19:44:05 +0300
commit2c562adb159ea3f4e5fdf4074e512ae369b4c22b (patch)
tree3a7688436470f474ea3a199f8f7ded87a6cf4ca6
parent23cf9e3ca498b2b3d6f2f4cf39d6db10a6c3e8e9 (diff)
downloadlinux-2c562adb159ea3f4e5fdf4074e512ae369b4c22b.tar.xz
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 <herve.codina@bootlin.com> Link: https://patch.msgid.link/20260513081702.317117-6-herve.codina@bootlin.com Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/codecs/simple-amplifier.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/codecs/simple-amplifier.c b/sound/soc/codecs/simple-amplifier.c
index 5b44bcfef49e..215318ff62fc 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,
};