clocksource/drivers/time-efm32: Convert init function to return error
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 6 Jun 2016 16:00:14 +0000 (18:00 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 28 Jun 2016 08:19:27 +0000 (10:19 +0200)
commitdc5011131b8c78d1f5040bf0f79b7c38b4211fe6
tree0b68cfb9efc4e7b35aa3cb98d8844f2cc3d7ac05
parent12549e27c63c61d76bb059bfafce0a4ee05c7e90
clocksource/drivers/time-efm32: Convert init function to return error

The init functions do not return any error and let the caller unaware of
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>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
drivers/clocksource/time-efm32.c