]> git.baikalelectronics.ru Git - kernel.git/commit
clocksource: armada-370-xp: Replace WARN_ON with BUG_ON
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Tue, 20 Aug 2013 15:45:52 +0000 (12:45 -0300)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 2 Sep 2013 19:44:13 +0000 (21:44 +0200)
commit557a6f13643bc83ad4f9429de2affebc52fe8eed
tree2ba744a933cfec16980d8ee6d66b6b27ef0af6a0
parent9b283d2d17866bd5a63675b93f60639fdead2085
clocksource: armada-370-xp: Replace WARN_ON with BUG_ON

If the clock fails to be obtained and the timer fails to be properly
registered, the kernel will freeze real soon. Instead, let's BUG()
where the actual problem is located.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Jason Cooper <jason@lakedaemon.net>
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
drivers/clocksource/time-armada-370-xp.c