summaryrefslogtreecommitdiffstats
path: root/drivers/clk
diff options
context:
space:
mode:
authorStefan Wahren <stefan.wahren@i2se.com>2023-03-08 19:46:03 +0100
committerAbel Vesa <abel.vesa@linaro.org>2023-03-31 15:42:32 +0300
commitf47a669ffa11c6c14b463d762562fe9681345c6e (patch)
tree422332b9521edfe2f289cc127cb84c31bfcf502c /drivers/clk
parent46a974433ea7fa468b45db70536f7cea81feb87c (diff)
downloadlinux-f47a669ffa11c6c14b463d762562fe9681345c6e.tar.gz
linux-f47a669ffa11c6c14b463d762562fe9681345c6e.tar.bz2
linux-f47a669ffa11c6c14b463d762562fe9681345c6e.zip
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: Stefan Wahren <stefan.wahren@i2se.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Abel Vesa <abel.vesa@linaro.org> Link: https://lore.kernel.org/r/20230308184603.10049-1-stefan.wahren@i2se.com
Diffstat (limited to 'drivers/clk')
-rw-r--r--drivers/clk/imx/clk-gpr-mux.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/clk/imx/clk-gpr-mux.c b/drivers/clk/imx/clk-gpr-mux.c
index c8d6090f15d6..0b5a97698b47 100644
--- a/drivers/clk/imx/clk-gpr-mux.c
+++ b/drivers/clk/imx/clk-gpr-mux.c
@@ -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.