Skip to content

Commit e379ee9

Browse files
agnersbroonie
authored andcommitted
ASoC: imx-sgtl5000: don't print EPROBE_DEFER as error
Probe deferral is to be expected during normal operation, so avoid printing an error when it is encountered. Signed-off-by: Stefan Agner <[email protected]> Reviewed-by: Daniel Baluta <[email protected]> Acked-by: Nicolin Chen <[email protected]> Reviewed-by: Fabio Estevam <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 691beb0 commit e379ee9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sound/soc/fsl/imx-sgtl5000.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ static int imx_sgtl5000_probe(struct platform_device *pdev)
157157

158158
ret = devm_snd_soc_register_card(&pdev->dev, &data->card);
159159
if (ret) {
160-
dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n", ret);
160+
if (ret != -EPROBE_DEFER)
161+
dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n",
162+
ret);
161163
goto fail;
162164
}
163165

0 commit comments

Comments
 (0)