diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2014-04-22 14:03:12 +0300 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-04-22 12:51:22 +0100 |
commit | 70e7a023cc9e9afafe503fa5533323ffe7091604 (patch) | |
tree | 521c50a76a32e39c38d21ad9927812f7b5574d90 /sound/soc/davinci/davinci-mcasp.c | |
parent | d5c6c59a9d46113aebfd71f995b9e6e9af6a12b8 (diff) | |
download | op-kernel-dev-70e7a023cc9e9afafe503fa5533323ffe7091604.zip op-kernel-dev-70e7a023cc9e9afafe503fa5533323ffe7091604.tar.gz |
ASoC: davinci-pcm: Convert to use devm_snd_soc_register_platform()
Remove the cleanup code related to the platform from the DAI drivers at the
same time to avoid breakage.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/davinci/davinci-mcasp.c')
-rw-r--r-- | sound/soc/davinci/davinci-mcasp.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/sound/soc/davinci/davinci-mcasp.c b/sound/soc/davinci/davinci-mcasp.c index d505fe7..44a0384 100644 --- a/sound/soc/davinci/davinci-mcasp.c +++ b/sound/soc/davinci/davinci-mcasp.c @@ -1254,23 +1254,8 @@ err_release_clk: static int davinci_mcasp_remove(struct platform_device *pdev) { - struct davinci_mcasp *mcasp = dev_get_drvdata(&pdev->dev); - snd_soc_unregister_component(&pdev->dev); - switch (mcasp->version) { - case MCASP_VERSION_1: - case MCASP_VERSION_2: - case MCASP_VERSION_3: - davinci_soc_platform_unregister(&pdev->dev); - break; - case MCASP_VERSION_4: - /* Using the resource managed omap-pcm as platform driver */ - break; - default: - break; - } - pm_runtime_put_sync(&pdev->dev); pm_runtime_disable(&pdev->dev); |