diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2011-11-18 09:39:26 -0500 |
---|---|---|
committer | Liam Girdwood <lrg@ti.com> | 2012-05-22 12:33:19 -0400 |
commit | 2ec1be372139328b1aa3203eb1fd61d613b2d7fb (patch) | |
tree | 37c9eb42d5d75ee156e3037db8ae37f136852f32 /sound | |
parent | 7cb8a1b5bae163c7aa746ffc02a641df6ed32f73 (diff) |
ASoC: omap-dmic: Add device tree bindings
Device tree support for OMAP4+ dmic cpu dai driver.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@ti.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/omap/omap-dmic.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sound/soc/omap/omap-dmic.c b/sound/soc/omap/omap-dmic.c index 4dcb5a7e40e8..75f5dca0e8d2 100644 --- a/sound/soc/omap/omap-dmic.c +++ b/sound/soc/omap/omap-dmic.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <linux/io.h> | 32 | #include <linux/io.h> |
33 | #include <linux/slab.h> | 33 | #include <linux/slab.h> |
34 | #include <linux/pm_runtime.h> | 34 | #include <linux/pm_runtime.h> |
35 | #include <linux/of_device.h> | ||
35 | #include <plat/dma.h> | 36 | #include <plat/dma.h> |
36 | 37 | ||
37 | #include <sound/core.h> | 38 | #include <sound/core.h> |
@@ -528,10 +529,17 @@ static int __devexit asoc_dmic_remove(struct platform_device *pdev) | |||
528 | return 0; | 529 | return 0; |
529 | } | 530 | } |
530 | 531 | ||
532 | static const struct of_device_id omap_dmic_of_match[] = { | ||
533 | { .compatible = "ti,omap4-dmic", }, | ||
534 | { } | ||
535 | }; | ||
536 | MODULE_DEVICE_TABLE(of, omap_dmic_of_match); | ||
537 | |||
531 | static struct platform_driver asoc_dmic_driver = { | 538 | static struct platform_driver asoc_dmic_driver = { |
532 | .driver = { | 539 | .driver = { |
533 | .name = "omap-dmic", | 540 | .name = "omap-dmic", |
534 | .owner = THIS_MODULE, | 541 | .owner = THIS_MODULE, |
542 | .of_match_table = omap_dmic_of_match, | ||
535 | }, | 543 | }, |
536 | .probe = asoc_dmic_probe, | 544 | .probe = asoc_dmic_probe, |
537 | .remove = __devexit_p(asoc_dmic_remove), | 545 | .remove = __devexit_p(asoc_dmic_remove), |