[PATCH V2 13/63] clocksource/drivers/bcm2835_timer: Convert init function to return error

Eric Anholt eric at anholt.net
Sat Jun 25 20:10:18 PDT 2016

Daniel Lezcano <daniel.lezcano at linaro.org> writes:

> 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 at linaro.org>

For the bcm2835 changes here and in 63/63:

Acked-by: Eric Anholt <eric at anholt.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-rpi-kernel/attachments/20160625/06972f9a/attachment.sig>

More information about the linux-rpi-kernel mailing list