ASoC: omap-hdmi: Bind the platform driver to the dai driver when loading
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 16 Apr 2014 12:46:19 +0000 (15:46 +0300)
committerMark Brown <broonie@linaro.org>
Fri, 18 Apr 2014 17:00:36 +0000 (18:00 +0100)
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>
sound/soc/omap/omap-hdmi.c

index ced3b88b44d4380880aa7a719f5d1eee4e31e70a..32614b49653cb03d222e32d9ec290d1a5c8addb5 100644 (file)
@@ -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);
 
-       return ret;
+       if (ret)
+               return ret;
+
+       return omap_pcm_platform_register(&pdev->dev);
+}
 }
 
 static int omap_hdmi_remove(struct platform_device *pdev)
This page took 0.025227 seconds and 5 git commands to generate.