Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -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 */