Skip to content

Commit 63b7c83

Browse files
author
Michal Simek
committed
microblaze: Fix return value from xilinx_timer_init
The patch "clocksource/drivers/microblaze: Convert init function to return error" (sha1: 0586421) 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: Michal Simek <michal.simek@xilinx.com> Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
1 parent a25f094 commit 63b7c83

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/microblaze/kernel/timer.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ static int __init xilinx_timer_init(struct device_node *timer)
259259
int ret;
260260

261261
if (initialized)
262-
return;
262+
return -EINVAL;
263263

264264
initialized = 1;
265265

0 commit comments

Comments
 (0)