ASoC: wm8524: remove unnecessary snd_soc_unregister_platform()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 23 Aug 2017 05:11:44 +0000 (05:11 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 23 Aug 2017 10:12:17 +0000 (11:12 +0100)
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>
sound/soc/codecs/wm8524.c

index b66147e0631b68fd347ac720f48c36c3b22f5e74..856a6950a451a3c10636c9fd898e390bfe3348ed 100644 (file)
@@ -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;
 }