Commit ec1e0e72 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown

ASoC: codecs: sgtl5000: Use dev_err_probe() helper

Use the dev_err_probe() helper, instead of open-coding the same
operation.
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/20211214020843.2225831-7-kuninori.morimoto.gx@renesas.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 526f6ca9
...@@ -1612,9 +1612,8 @@ static int sgtl5000_i2c_probe(struct i2c_client *client, ...@@ -1612,9 +1612,8 @@ static int sgtl5000_i2c_probe(struct i2c_client *client,
if (ret == -ENOENT) if (ret == -ENOENT)
ret = -EPROBE_DEFER; ret = -EPROBE_DEFER;
if (ret != -EPROBE_DEFER) dev_err_probe(&client->dev, ret, "Failed to get mclock\n");
dev_err(&client->dev, "Failed to get mclock: %d\n",
ret);
goto disable_regs; goto disable_regs;
} }
......
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