aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/omap/omap-mcpdm.c
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2011-11-15 04:32:14 -0500
committerLiam Girdwood <lrg@ti.com>2012-05-22 12:33:19 -0400
commit7cb8a1b5bae163c7aa746ffc02a641df6ed32f73 (patch)
treea30c451156718e5b66df31ff9a5411ef9ccf6560 /sound/soc/omap/omap-mcpdm.c
parentce37f5ea4b77171952aacd829e8f346b78191a7b (diff)
ASoC: omap-mcpdm: Add device tree bindings
Device tree support for OMAP4+ McPDM 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/soc/omap/omap-mcpdm.c')
-rw-r--r--sound/soc/omap/omap-mcpdm.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sound/soc/omap/omap-mcpdm.c b/sound/soc/omap/omap-mcpdm.c
index 39705561131a..59d47ab5b15d 100644
--- a/sound/soc/omap/omap-mcpdm.c
+++ b/sound/soc/omap/omap-mcpdm.c
@@ -33,6 +33,7 @@
33#include <linux/irq.h> 33#include <linux/irq.h>
34#include <linux/slab.h> 34#include <linux/slab.h>
35#include <linux/pm_runtime.h> 35#include <linux/pm_runtime.h>
36#include <linux/of_device.h>
36 37
37#include <sound/core.h> 38#include <sound/core.h>
38#include <sound/pcm.h> 39#include <sound/pcm.h>
@@ -507,10 +508,17 @@ static int __devexit asoc_mcpdm_remove(struct platform_device *pdev)
507 return 0; 508 return 0;
508} 509}
509 510
511static const struct of_device_id omap_mcpdm_of_match[] = {
512 { .compatible = "ti,omap4-mcpdm", },
513 { }
514};
515MODULE_DEVICE_TABLE(of, omap_mcpdm_of_match);
516
510static struct platform_driver asoc_mcpdm_driver = { 517static struct platform_driver asoc_mcpdm_driver = {
511 .driver = { 518 .driver = {
512 .name = "omap-mcpdm", 519 .name = "omap-mcpdm",
513 .owner = THIS_MODULE, 520 .owner = THIS_MODULE,
521 .of_match_table = omap_mcpdm_of_match,
514 }, 522 },
515 523
516 .probe = asoc_mcpdm_probe, 524 .probe = asoc_mcpdm_probe,