Skip to content

Commit

Permalink
ASoC: wm8524: remove unnecessary snd_soc_unregister_platform()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kuninori Morimoto authored and Mark Brown committed Aug 23, 2017
1 parent 80bfd04 commit 6cbcad0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sound/soc/codecs/wm8524.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6cbcad0

Please sign in to comment.