clocksource/drivers/stm32: Fix error return code
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sun, 10 Jun 2018 14:24:15 +0000 (16:24 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 12 Jun 2018 21:54:01 +0000 (23:54 +0200)
commita26ed66c20f080c510fcf5bd448bce204f2c19d7
tree82b4839382598fe13bd920d742bcd83fab085227
parentc60c32a5775615d5456a09527aaa12e4a109c3da
clocksource/drivers/stm32: Fix error return code

Return an error code on failure.

Problem found using Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: kernel-janitors@vger.kernel.org
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Cc: Alexandre Torgue <alexandre.torgue@st.com>
Cc: linux-arm-kernel@lists.infradead.org
Link: https://lkml.kernel.org/r1528640655-18948-3-git-send-email-Julia.Lawall@lip6.fr
drivers/clocksource/timer-stm32.c