]> 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)
commit6ce2cd995f33d790dcdf3a546f2671883b634d4c
tree2ba744a933cfec16980d8ee6d66b6b27ef0af6a0
parent1a60f6c18ac0675985ffd7ee6cc07a6a84b2513c
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