linux/arch/nios2/kernel
Daniel Lezcano dd1364a743 clocksource/drivers/nios2: Convert init function to return error
The init functions do not return any error. They behave as the following:

  - panic, thus leading to a kernel crash while another timer may work and
       make the system boot up correctly

  or

  - print an error and let the caller unaware if the state of the system

Change that by converting the init functions to return an error conforming
to the CLOCKSOURCE_OF_RET prototype.

Proper error handling (rollback, errno value) will be changed later case
by case, thus this change just return back an error or success in the init
function.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
2016-06-28 10:19:34 +02:00
..
asm-offsets.c nios2: asm-offsets: Remove unused definition TI_TASK 2014-12-08 12:56:12 +08:00
cpuinfo.c nios2: cpuinfo: remove use of seq_printf return value 2015-04-15 16:35:24 -07:00
early_printk.c nios2: add early printk support 2015-02-10 23:21:08 +08:00
entry.S nios2: rework trap handler 2015-04-20 11:11:14 +08:00
head.S nios2: Kernel booting and initialization 2014-12-08 12:55:49 +08:00
insnemu.S nios2: Traps exception handling 2014-12-08 12:55:50 +08:00
irq.c nios2: Interrupt handling 2014-12-08 12:55:55 +08:00
kgdb.c nios2: add kgdb support 2015-02-16 19:26:43 +08:00
Makefile nios2: add kgdb support 2015-02-16 19:26:43 +08:00
misaligned.c nios2: remove unused statistic counters 2015-09-08 01:32:34 +08:00
module.c module: remove mod arg from module_free, rename module_memfree(). 2015-01-20 11:38:33 +10:30
nios2_ksyms.c nios2: Build infrastructure 2014-12-08 12:56:06 +08:00
process.c whack-a-mole: no need to set_fs(USER_DS) in {start,flush}_thread() 2015-04-11 22:24:31 -04:00
prom.c nios2: Replace fdt_translate_address with of_flat_dt_translate_address 2016-03-31 08:15:45 +08:00
ptrace.c nios2: ptrace support 2014-12-08 12:56:04 +08:00
setup.c nios2: Fix unused variable warning 2015-11-09 10:33:29 +08:00
signal.c nios2: signal: Move restart_block to struct task_struct 2015-04-08 13:45:16 +08:00
sys_nios2.c nios2: System calls handling 2014-12-08 12:55:58 +08:00
syscall_table.c nios2: System calls handling 2014-12-08 12:55:58 +08:00
time.c clocksource/drivers/nios2: Convert init function to return error 2016-06-28 10:19:34 +02:00
traps.c nios2: rework trap handler 2015-04-20 11:11:14 +08:00
vmlinux.lds.S arch, ftrace: for KASAN put hard/soft IRQ entries into separate sections 2016-03-25 16:37:42 -07:00