mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
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:
parent
23cf9e3ca4
commit
2c562adb15
|
|
@ -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,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user