diff mbox

[07/18] ASoC: omap-dmic: Bind the platform driver to the dai driver when loading

Message ID 1397640211-15447-8-git-send-email-peter.ujfalusi@ti.com (mailing list archive)
State Accepted
Commit 18d7cfea28fe7e06047abef40a18db2643a427be
Headers show

Commit Message

Peter Ujfalusi April 16, 2014, 9:23 a.m. UTC
Use the same device for the platform driver when registering as the dai
driver. This will enable us to clean up some DT booted cases.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
 sound/soc/omap/omap-dmic.c | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox

Patch

diff --git a/sound/soc/omap/omap-dmic.c b/sound/soc/omap/omap-dmic.c
index 350b4d524c86..054dfa8b05c4 100644
--- a/sound/soc/omap/omap-dmic.c
+++ b/sound/soc/omap/omap-dmic.c
@@ -42,6 +42,7 @@ 
 #include <sound/dmaengine_pcm.h>
 
 #include "omap-dmic.h"
+#include "omap-pcm.h"
 
 struct omap_dmic {
 	struct device *dev;
@@ -495,6 +496,10 @@  static int asoc_dmic_probe(struct platform_device *pdev)
 	if (ret)
 		goto err_put_clk;
 
+	ret = omap_pcm_platform_register(&pdev->dev);
+	if (ret)
+		goto err_put_clk;
+
 	return 0;
 
 err_put_clk: