From: Alexander Shiyan Date: Sun, 5 Jan 2014 07:38:32 +0000 (+0400) Subject: ASoC: mc13783: Use core error messages if registration fails X-Git-Tag: v3.14-rc1~16^2~11^2^2^9~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0acb26a6c716ef2f8ab550475c5da4d187995cca;p=platform%2Fkernel%2Flinux-stable.git ASoC: mc13783: Use core error messages if registration fails Signed-off-by: Alexander Shiyan Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/mc13783.c b/sound/soc/codecs/mc13783.c index 8ab9668..c2def5d 100644 --- a/sound/soc/codecs/mc13783.c +++ b/sound/soc/codecs/mc13783.c @@ -781,14 +781,6 @@ static int __init mc13783_codec_probe(struct platform_device *pdev) ret = snd_soc_register_codec(&pdev->dev, &soc_codec_dev_mc13783, mc13783_dai_async, ARRAY_SIZE(mc13783_dai_async)); - if (ret) - goto err_register_codec; - - return 0; - -err_register_codec: - dev_err(&pdev->dev, "register codec failed with %d\n", ret); - return ret; }