Commit 106d2eff authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown

ASoC: rsnd: non 0 is error on probe

Some xxx_probe() returns not only -Exx, but also PTR_ERR().
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 9b5ab573
......@@ -737,23 +737,23 @@ static int rsnd_probe(struct platform_device *pdev)
* init each module
*/
ret = rsnd_gen_probe(pdev, info, priv);
if (ret < 0)
if (ret)
return ret;
ret = rsnd_scu_probe(pdev, info, priv);
if (ret < 0)
if (ret)
return ret;
ret = rsnd_adg_probe(pdev, info, priv);
if (ret < 0)
if (ret)
return ret;
ret = rsnd_ssi_probe(pdev, info, priv);
if (ret < 0)
if (ret)
return ret;
ret = rsnd_dai_probe(pdev, info, priv);
if (ret < 0)
if (ret)
return ret;
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment