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>
This commit is contained in:
Herve Codina 2026-05-13 10:16:49 +02:00 committed by Mark Brown
parent 23cf9e3ca4
commit 2c562adb15
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View 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,
};