ASoC: samsung: Silence warnings during deferred probe
Don't confuse user with meaningless warning about the failure in getting resources and registering card in case of deferred probe. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> Link: https://lore.kernel.org/r/20200228101120.28819-1-m.szyprowski@samsung.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Родитель
a3c2e894cd
Коммит
1a1b374348
|
@ -174,7 +174,9 @@ static int arndale_audio_probe(struct platform_device *pdev)
|
|||
|
||||
ret = devm_snd_soc_register_card(card->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);
|
||||
goto err_put_of_nodes;
|
||||
}
|
||||
return 0;
|
||||
|
|
|
@ -325,7 +325,7 @@ static int littlemill_probe(struct platform_device *pdev)
|
|||
card->dev = &pdev->dev;
|
||||
|
||||
ret = devm_snd_soc_register_card(&pdev->dev, card);
|
||||
if (ret)
|
||||
if (ret && ret != -EPROBE_DEFER)
|
||||
dev_err(&pdev->dev, "snd_soc_register_card() failed: %d\n",
|
||||
ret);
|
||||
|
||||
|
|
|
@ -183,7 +183,7 @@ static int lowland_probe(struct platform_device *pdev)
|
|||
card->dev = &pdev->dev;
|
||||
|
||||
ret = devm_snd_soc_register_card(&pdev->dev, card);
|
||||
if (ret)
|
||||
if (ret && ret != -EPROBE_DEFER)
|
||||
dev_err(&pdev->dev, "snd_soc_register_card() failed: %d\n",
|
||||
ret);
|
||||
|
||||
|
|
|
@ -311,7 +311,9 @@ static int odroid_audio_probe(struct platform_device *pdev)
|
|||
|
||||
ret = devm_snd_soc_register_card(dev, card);
|
||||
if (ret < 0) {
|
||||
dev_err(dev, "snd_soc_register_card() failed: %d\n", ret);
|
||||
if (ret != -EPROBE_DEFER)
|
||||
dev_err(dev, "snd_soc_register_card() failed: %d\n",
|
||||
ret);
|
||||
goto err_put_clk_i2s;
|
||||
}
|
||||
|
||||
|
|
|
@ -178,7 +178,7 @@ static int smdk_audio_probe(struct platform_device *pdev)
|
|||
|
||||
ret = devm_snd_soc_register_card(&pdev->dev, card);
|
||||
|
||||
if (ret)
|
||||
if (ret && ret != -EPROBE_DEFER)
|
||||
dev_err(&pdev->dev, "snd_soc_register_card() failed:%d\n", ret);
|
||||
|
||||
return ret;
|
||||
|
|
|
@ -118,7 +118,7 @@ static int snd_smdk_probe(struct platform_device *pdev)
|
|||
|
||||
smdk_pcm.dev = &pdev->dev;
|
||||
ret = devm_snd_soc_register_card(&pdev->dev, &smdk_pcm);
|
||||
if (ret)
|
||||
if (ret && ret != -EPROBE_DEFER)
|
||||
dev_err(&pdev->dev, "snd_soc_register_card failed %d\n", ret);
|
||||
|
||||
return ret;
|
||||
|
|
|
@ -216,7 +216,9 @@ static int snow_probe(struct platform_device *pdev)
|
|||
|
||||
ret = devm_snd_soc_register_card(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;
|
||||
}
|
||||
|
||||
|
|
|
@ -330,7 +330,7 @@ static int speyside_probe(struct platform_device *pdev)
|
|||
card->dev = &pdev->dev;
|
||||
|
||||
ret = devm_snd_soc_register_card(&pdev->dev, card);
|
||||
if (ret)
|
||||
if (ret && ret != -EPROBE_DEFER)
|
||||
dev_err(&pdev->dev, "snd_soc_register_card() failed: %d\n",
|
||||
ret);
|
||||
|
||||
|
|
|
@ -611,6 +611,7 @@ static int tm2_probe(struct platform_device *pdev)
|
|||
|
||||
ret = devm_snd_soc_register_card(dev, card);
|
||||
if (ret < 0) {
|
||||
if (ret != -EPROBE_DEFER)
|
||||
dev_err(dev, "Failed to register card: %d\n", ret);
|
||||
goto dai_node_put;
|
||||
}
|
||||
|
|
|
@ -229,7 +229,7 @@ static int tobermory_probe(struct platform_device *pdev)
|
|||
card->dev = &pdev->dev;
|
||||
|
||||
ret = devm_snd_soc_register_card(&pdev->dev, card);
|
||||
if (ret)
|
||||
if (ret && ret != -EPROBE_DEFER)
|
||||
dev_err(&pdev->dev, "snd_soc_register_card() failed: %d\n",
|
||||
ret);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче