Commit b7c8b4aa authored by Vladimir Zapolskiy's avatar Vladimir Zapolskiy Committed by Thomas Gleixner

clocksource/drivers/pistachio: Correct output format of PTR_ERR()

Use signed integer output in the pr_err() string format, here PTR_ERR() value
is negative and it should be reported in human readable way.
Signed-off-by: default avatarVladimir Zapolskiy <vz@mleia.com>
Cc: Jisheng Zhang <jszhang@marvell.com>
Cc: Ezequiel Garcia <ezequiel.garcia@imgtec.com>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: http://lkml.kernel.org/r/1458603727-4446-1-git-send-email-vz@mleia.comSigned-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 710d60cb
...@@ -163,7 +163,7 @@ static void __init pistachio_clksrc_of_init(struct device_node *node) ...@@ -163,7 +163,7 @@ static void __init pistachio_clksrc_of_init(struct device_node *node)
periph_regs = syscon_regmap_lookup_by_phandle(node, "img,cr-periph"); periph_regs = syscon_regmap_lookup_by_phandle(node, "img,cr-periph");
if (IS_ERR(periph_regs)) { if (IS_ERR(periph_regs)) {
pr_err("cannot get peripheral regmap (%lu)\n", pr_err("cannot get peripheral regmap (%ld)\n",
PTR_ERR(periph_regs)); PTR_ERR(periph_regs));
return; return;
} }
...@@ -176,7 +176,7 @@ static void __init pistachio_clksrc_of_init(struct device_node *node) ...@@ -176,7 +176,7 @@ static void __init pistachio_clksrc_of_init(struct device_node *node)
sys_clk = of_clk_get_by_name(node, "sys"); sys_clk = of_clk_get_by_name(node, "sys");
if (IS_ERR(sys_clk)) { if (IS_ERR(sys_clk)) {
pr_err("clock get failed (%lu)\n", PTR_ERR(sys_clk)); pr_err("clock get failed (%ld)\n", PTR_ERR(sys_clk));
return; return;
} }
......
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