clocksource/drivers/clksrc-probe: Introduce init functions with return code
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 31 May 2016 14:25:59 +0000 (16:25 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 28 Jun 2016 08:19:17 +0000 (10:19 +0200)
commitb7c4db861683af5fc50ac3cb3751cf847d765211
treed99dd70e66b503d06d933f12e2ab3b994ba30dab
parentc35d9292fee0474a1a037f75b0b85af32200c76f
clocksource/drivers/clksrc-probe: Introduce init functions with return code

Currently, the clksrc-probe is not able to handle any error from the init
functions. There are different issues with the current code:
 - the code is duplicated in the init functions by writing error
 - every driver tends to panic in its own init function
 - counting the number of clocksources is not reliable

This patch adds another table to store the functions returning an error.
The table is temporary while we convert all the drivers to return an error
and will disappear.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/clksrc-probe.c
include/asm-generic/vmlinux.lds.h
include/linux/clocksource.h