card->dev = &pdev->dev;
+ ++++ if (of_find_property(np, "audio-routing", NULL)) {
+ ++++ card->dapm_widgets = mxs_sgtl5000_dapm_widgets;
+ ++++ card->num_dapm_widgets = ARRAY_SIZE(mxs_sgtl5000_dapm_widgets);
+ ++++
+ ++++ ret = snd_soc_of_parse_audio_routing(card, "audio-routing");
+ ++++ if (ret) {
+ ++++ dev_err(&pdev->dev, "failed to parse audio-routing (%d)\n",
+ ++++ ret);
+ ++++ return ret;
+ ++++ }
+ ++++ }
+ ++++
ret = devm_snd_soc_register_card(&pdev->dev, card);
if (ret) {
-- --- dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n",
-- --- ret);
++ +++ if (ret != -EPROBE_DEFER)
++ +++ dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n",
++ +++ ret);
return ret;
}