diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-09-17 04:12:47 (GMT) |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-09-19 13:57:37 (GMT) |
commit | ff27d9b3d6dd26013537e4f8162627169ca92af4 (patch) | |
tree | 7e3141daafce80f4de7ee56e6f8e7412c4e0551b /sound/soc/fsl | |
parent | 01984a47e21a7d36cea0d6c0933c8173391721fc (diff) | |
download | linux-ff27d9b3d6dd26013537e4f8162627169ca92af4.tar.xz |
ASoC: imx-spdif: Use devm_snd_soc_register_card
devm_snd_soc_register_card makes code simpler.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/fsl')
-rw-r--r-- | sound/soc/fsl/imx-spdif.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/fsl/imx-spdif.c b/sound/soc/fsl/imx-spdif.c index 816013b..8499d52 100644 --- a/sound/soc/fsl/imx-spdif.c +++ b/sound/soc/fsl/imx-spdif.c @@ -87,7 +87,7 @@ static int imx_spdif_audio_probe(struct platform_device *pdev) if (ret) goto error_dir; - ret = snd_soc_register_card(&data->card); + ret = devm_snd_soc_register_card(&pdev->dev, &data->card); if (ret) { dev_err(&pdev->dev, "snd_soc_register_card failed: %d\n", ret); goto error_dir; @@ -119,8 +119,6 @@ static int imx_spdif_audio_remove(struct platform_device *pdev) if (data->txdev) platform_device_unregister(data->txdev); - snd_soc_unregister_card(&data->card); - return 0; } |