mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
microblaze: Fix return value from xilinx_timer_init
The patch
"clocksource/drivers/microblaze: Convert init function to return error"
(sha1: 0586421746)
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 <[email protected]>
Acked-by: Daniel Lezcano <[email protected]>
This commit is contained in:
parent
a25f0944ba
commit
63b7c83ebe
1 changed files with 1 additions and 1 deletions
|
|
@ -259,7 +259,7 @@ static int __init xilinx_timer_init(struct device_node *timer)
|
|||
int ret;
|
||||
|
||||
if (initialized)
|
||||
return;
|
||||
return -EINVAL;
|
||||
|
||||
initialized = 1;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue