diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2016-05-31 14:25:59 (GMT) |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2016-06-28 08:19:17 (GMT) |
commit | b7c4db861683af5fc50ac3cb3751cf847d765211 (patch) | |
tree | d99dd70e66b503d06d933f12e2ab3b994ba30dab /block | |
parent | c35d9292fee0474a1a037f75b0b85af32200c76f (diff) | |
download | linux-b7c4db861683af5fc50ac3cb3751cf847d765211.tar.xz |
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>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions