diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2017-08-23 05:11:44 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-08-23 11:12:17 +0100 |
commit | 6cbcad079ecdb8ecd214d33688fd7f19167fe57a (patch) | |
tree | fc1d18904855f392aac34b06827ea6d5c31ac141 /sound | |
parent | 80bfd0431f7dc133f4edbc0b864f800c4ed7a3f4 (diff) | |
download | linux-stable-6cbcad079ecdb8ecd214d33688fd7f19167fe57a.tar.gz linux-stable-6cbcad079ecdb8ecd214d33688fd7f19167fe57a.tar.bz2 linux-stable-6cbcad079ecdb8ecd214d33688fd7f19167fe57a.zip |
ASoC: wm8524: remove unnecessary snd_soc_unregister_platform()
wm8524 doesn't register platform, unregister platform is not needed
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/wm8524.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/codecs/wm8524.c b/sound/soc/codecs/wm8524.c index b66147e0631b..856a6950a451 100644 --- a/sound/soc/codecs/wm8524.c +++ b/sound/soc/codecs/wm8524.c @@ -233,10 +233,8 @@ static int wm8524_codec_probe(struct platform_device *pdev) ret = snd_soc_register_codec(&pdev->dev, &soc_codec_dev_wm8524, &wm8524_dai, 1); - if (ret < 0) { + if (ret < 0) dev_err(&pdev->dev, "Failed to register codec: %d\n", ret); - snd_soc_unregister_platform(&pdev->dev); - } return ret; } |