]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: bcm63xx: cpu: Replace BUG() with panic()
authorMarkos Chandras <markos.chandras@imgtec.com>
Mon, 30 Sep 2013 08:38:00 +0000 (09:38 +0100)
committerJohn Crispin <blogic@openwrt.org>
Tue, 14 Jan 2014 20:39:52 +0000 (21:39 +0100)
commitfcbadaf4e8bd427c9b533020e4cc9df479b1e59e
treeb2df47f1aa89ebe64f0591393502d8787e30eca3
parent6ab9446cdcacf8c051c1ab3956398cc8de08a6e2
MIPS: bcm63xx: cpu: Replace BUG() with panic()

BUG() can be a noop if CONFIG_BUG is not selected,
leading to the following build problem on a randconfig:

arch/mips/bcm63xx/cpu.c: In function 'detect_cpu_clock':
arch/mips/bcm63xx/cpu.c:254:1: error: control reaches end of
non-void function [-Werror=return-type]

We fix this problem by replacing BUG() with panic() since it's
best to handle the case of an unknown board instead of silently
returning a random clock frequency.

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Acked-by: Steven J. Hill <Steven.Hill@imgtec.com>
Acked-by: Jonas Gorski <jogo@openwrt.org>
Acked-by: John Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/5932/
arch/mips/bcm63xx/cpu.c