Commit f47a669f authored by Stefan Wahren's avatar Stefan Wahren Committed by Abel Vesa

clk: imx: clk-gpr-mux: Provide clock name in error message

In error case the error message doesn't provide much context:

imx:clk-gpr-mux: failed to get parent (-EINVAL)

So additionally provide the clock name in the message, in
order to simplify the further analyze.
Signed-off-by: default avatarStefan Wahren <stefan.wahren@i2se.com>
Reviewed-by: default avatarPeng Fan <peng.fan@nxp.com>
Signed-off-by: default avatarAbel Vesa <abel.vesa@linaro.org>
Link: https://lore.kernel.org/r/20230308184603.10049-1-stefan.wahren@i2se.com
parent 46a97443
......@@ -48,7 +48,8 @@ static u8 imx_clk_gpr_mux_get_parent(struct clk_hw *hw)
return ret;
get_parent_err:
pr_err("failed to get parent (%pe)\n", ERR_PTR(ret));
pr_err("%s: failed to get parent (%pe)\n",
clk_hw_get_name(hw), ERR_PTR(ret));
/* return some realistic non negative value. Potentially we could
* give index to some dummy error parent.
......
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