aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/omap/omap-dmic.c8
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
532static const struct of_device_id omap_dmic_of_match[] = {
533 { .compatible = "ti,omap4-dmic", },
534 { }
535};
536MODULE_DEVICE_TABLE(of, omap_dmic_of_match);
537
531static struct platform_driver asoc_dmic_driver = { 538static 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),