Skip to content
Commit b7c4db86 authored by Daniel Lezcano's avatar Daniel Lezcano
Browse files

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: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
parent c35d9292
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment