Commit 63b7c83e authored by Michal Simek's avatar Michal Simek

microblaze: Fix return value from xilinx_timer_init

The patch
"clocksource/drivers/microblaze: Convert init function to return error"
(sha1: 05864217)
introduced return value and this one was forgetten to convert.

This patch also remove compilation warning:
arch/microblaze/kernel/timer.c: In function 'xilinx_timer_init':
arch/microblaze/kernel/timer.c:262:3: warning: 'return' with no value,
 in function returning non-void [-Wreturn-type]
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
Acked-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
parent a25f0944
......@@ -259,7 +259,7 @@ static int __init xilinx_timer_init(struct device_node *timer)
int ret;
if (initialized)
return;
return -EINVAL;
initialized = 1;
......
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