Skip to content

Commit

Permalink
ASoC: mc13783: Use core error messages if registration fails
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Alexander Shiyan authored and Mark Brown committed Jan 6, 2014
1 parent a5d3f6a commit 0acb26a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions sound/soc/codecs/mc13783.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 0acb26a

Please sign in to comment.