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

Commit 9769824c authored by Peter Ujfalusi's avatar Peter Ujfalusi Committed by Mark Brown
Browse files

ASoC: omap-hdmi: 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 18d7cfea
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@
#include <video/omapdss.h>

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

#define DRV_NAME "omap-hdmi-audio-dai"

@@ -324,7 +325,11 @@ static int omap_hdmi_probe(struct platform_device *pdev)
	ret = snd_soc_register_component(&pdev->dev, &omap_hdmi_component,
					 &omap_hdmi_dai, 1);

	if (ret)
		return ret;

	return omap_pcm_platform_register(&pdev->dev);
}
}

static int omap_hdmi_remove(struct platform_device *pdev)