diff options
author | Robert Jarzmik <robert.jarzmik@free.fr> | 2018-06-17 12:50:01 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-06-18 12:55:16 +0100 |
commit | a4519526ebbd261e36425fa1c269515ee0648ab2 (patch) | |
tree | aa67c4d4b92ee0604d66791d6059b8046b3687f0 /sound/soc/pxa | |
parent | e2b35e468c89000cf3b8b5beb63fd73dfa8a5435 (diff) | |
download | linux-stable-a4519526ebbd261e36425fa1c269515ee0648ab2.tar.gz linux-stable-a4519526ebbd261e36425fa1c269515ee0648ab2.tar.bz2 linux-stable-a4519526ebbd261e36425fa1c269515ee0648ab2.zip |
ASoC: pxa: add devicetree support
Add the devicetree support, so that the driver can be used in a
devictree platform.
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/pxa')
-rw-r--r-- | sound/soc/pxa/pxa2xx-ac97.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sound/soc/pxa/pxa2xx-ac97.c b/sound/soc/pxa/pxa2xx-ac97.c index 803818aabee9..5738a0abcd6a 100644 --- a/sound/soc/pxa/pxa2xx-ac97.c +++ b/sound/soc/pxa/pxa2xx-ac97.c @@ -238,6 +238,17 @@ static const struct snd_soc_component_driver pxa_ac97_component = { .name = "pxa-ac97", }; +#ifdef CONFIG_OF +static const struct of_device_id pxa2xx_ac97_dt_ids[] = { + { .compatible = "marvell,pxa250-ac97", }, + { .compatible = "marvell,pxa270-ac97", }, + { .compatible = "marvell,pxa300-ac97", }, + { } +}; +MODULE_DEVICE_TABLE(of, pxa2xx_ac97_dt_ids); + +#endif + static int pxa2xx_ac97_dev_probe(struct platform_device *pdev) { int ret; @@ -296,6 +307,7 @@ static struct platform_driver pxa2xx_ac97_driver = { #ifdef CONFIG_PM_SLEEP .pm = &pxa2xx_ac97_pm_ops, #endif + .of_match_table = of_match_ptr(pxa2xx_ac97_dt_ids), }, }; |