diff options
author | Jon Hunter <jonathanh@nvidia.com> | 2020-11-11 13:32:45 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-11-11 15:35:10 +0300 |
commit | 34d3daba23399440dedddd0f9ccd6c1057314139 (patch) | |
tree | 980689c1cb706e6db85f2af06ec09169b0e884cd /sound/soc/tegra/tegra_max98090.c | |
parent | 0a142f536785196397aa07aa1c81343b9db0a3b9 (diff) | |
download | linux-34d3daba23399440dedddd0f9ccd6c1057314139.tar.xz |
ASoC: tegra: Don't warn on probe deferral
Deferred probe is an expected return value for snd_soc_register_card().
Given that the driver deals with it properly, there's no need to output
a warning that may potentially confuse users.
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Link: https://lore.kernel.org/r/20201111103245.152189-1-jonathanh@nvidia.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/tegra/tegra_max98090.c')
-rw-r--r-- | sound/soc/tegra/tegra_max98090.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sound/soc/tegra/tegra_max98090.c b/sound/soc/tegra/tegra_max98090.c index 9d8e16473ab9..00c19704057b 100644 --- a/sound/soc/tegra/tegra_max98090.c +++ b/sound/soc/tegra/tegra_max98090.c @@ -247,11 +247,9 @@ static int tegra_max98090_probe(struct platform_device *pdev) 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); - return ret; - } + if (ret) + return dev_err_probe(&pdev->dev, ret, + "snd_soc_register_card failed\n"); return 0; } |