summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2014-04-16 15:46:18 +0300
committerDarren Etheridge <detheridge@ti.com>2014-06-20 15:07:59 -0500
commit4cdff6e6d80e5ac47934ae3f036fd763cc992da1 (patch)
tree65cbc07dca60a0282fc156318ba213418ea5321a /sound
parentc8a05230d22ad4d20c9db6c14243fcccd0918300 (diff)
ASoC: omap-dmic: Bind the platform driver to the dai driver when loading
[ Upstream commit 18d7cfea28fe7e06047abef40a18db2643a427be ] 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> Signed-off-by: Mark Brown <broonie@linaro.org> Signed-off-by: Darren Etheridge <detheridge@ti.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/omap/omap-dmic.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/omap/omap-dmic.c b/sound/soc/omap/omap-dmic.c
index 7fb7703264f..53da041896c 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;
@@ -494,6 +495,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: