Skip to content

Commit 6cbcad0

Browse files
morimotobroonie
authored andcommitted
ASoC: wm8524: remove unnecessary snd_soc_unregister_platform()
wm8524 doesn't register platform, unregister platform is not needed Signed-off-by: Kuninori Morimoto <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 80bfd04 commit 6cbcad0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sound/soc/codecs/wm8524.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,8 @@ static int wm8524_codec_probe(struct platform_device *pdev)
233233

234234
ret = snd_soc_register_codec(&pdev->dev,
235235
&soc_codec_dev_wm8524, &wm8524_dai, 1);
236-
if (ret < 0) {
236+
if (ret < 0)
237237
dev_err(&pdev->dev, "Failed to register codec: %d\n", ret);
238-
snd_soc_unregister_platform(&pdev->dev);
239-
}
240238

241239
return ret;
242240
}

0 commit comments

Comments
 (0)