Commit 4d48298a authored by Nicolin Chen's avatar Nicolin Chen Committed by Mark Brown

ASoC: cs53l30: Do not ignore errors if mclk is specified

When the clock is specified, there could be other errors besides
the EPROBE_DEFER so don't ignore them.
Signed-off-by: default avatarNicolin Chen <nicoleotsuka@gmail.com>
Acked-by: default avatarPaul Handrigan <Paul.Handrigan@cirrus.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 29b4817d
...@@ -999,8 +999,8 @@ static int cs53l30_i2c_probe(struct i2c_client *client, ...@@ -999,8 +999,8 @@ static int cs53l30_i2c_probe(struct i2c_client *client,
/* Check if MCLK provided */ /* Check if MCLK provided */
cs53l30->mclk = devm_clk_get(dev, "mclk"); cs53l30->mclk = devm_clk_get(dev, "mclk");
if (IS_ERR(cs53l30->mclk)) { if (IS_ERR(cs53l30->mclk)) {
if (PTR_ERR(cs53l30->mclk) == -EPROBE_DEFER) { if (PTR_ERR(cs53l30->mclk) != -ENOENT) {
ret = -EPROBE_DEFER; ret = PTR_ERR(cs53l30->mclk);
goto error; goto error;
} }
/* Otherwise mark the mclk pointer to NULL */ /* Otherwise mark the mclk pointer to NULL */
......
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