Commit 64241425 authored by Peter Ujfalusi's avatar Peter Ujfalusi Committed by Mark Brown

ASoC: omap-mcbsp: 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 3fe856b3
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
#include <linux/platform_data/asoc-ti-mcbsp.h> #include <linux/platform_data/asoc-ti-mcbsp.h>
#include "mcbsp.h" #include "mcbsp.h"
#include "omap-mcbsp.h" #include "omap-mcbsp.h"
#include "omap-pcm.h"
#define OMAP_MCBSP_RATES (SNDRV_PCM_RATE_8000_96000) #define OMAP_MCBSP_RATES (SNDRV_PCM_RATE_8000_96000)
...@@ -800,11 +801,15 @@ static int asoc_mcbsp_probe(struct platform_device *pdev) ...@@ -800,11 +801,15 @@ static int asoc_mcbsp_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, mcbsp); platform_set_drvdata(pdev, mcbsp);
ret = omap_mcbsp_init(pdev); ret = omap_mcbsp_init(pdev);
if (!ret) if (ret)
return snd_soc_register_component(&pdev->dev, &omap_mcbsp_component, return ret;
&omap_mcbsp_dai, 1);
return ret; ret = snd_soc_register_component(&pdev->dev, &omap_mcbsp_component,
&omap_mcbsp_dai, 1);
if (ret)
return ret;
return omap_pcm_platform_register(&pdev->dev);
} }
static int asoc_mcbsp_remove(struct platform_device *pdev) static int asoc_mcbsp_remove(struct platform_device *pdev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment