Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 18d7cfea authored by Peter Ujfalusi's avatar Peter Ujfalusi Committed by Mark Brown
Browse files

ASoC: omap-dmic: Bind the platform driver to the dai driver when loading



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: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 3802a259
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -42,6 +42,7 @@
#include <sound/dmaengine_pcm.h>
#include <sound/dmaengine_pcm.h>


#include "omap-dmic.h"
#include "omap-dmic.h"
#include "omap-pcm.h"


struct omap_dmic {
struct omap_dmic {
	struct device *dev;
	struct device *dev;
@@ -494,6 +495,10 @@ static int asoc_dmic_probe(struct platform_device *pdev)
	if (ret)
	if (ret)
		goto err_put_clk;
		goto err_put_clk;


	ret = omap_pcm_platform_register(&pdev->dev);
	if (ret)
		goto err_put_clk;

	return 0;
	return 0;


err_put_clk:
err_put_clk: