From: Markos Chandras Date: Mon, 30 Sep 2013 08:38:00 +0000 (+0100) Subject: MIPS: bcm63xx: cpu: Replace BUG() with panic() X-Git-Tag: v3.14-rc1~37^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17d97bad1ab966f1f39b10c48cd3f858a29b3659;p=pandora-kernel.git 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 Acked-by: Steven J. Hill Acked-by: Jonas Gorski Signed-off-by: John Crispin Patchwork: http://patchwork.linux-mips.org/patch/5932/ --- Reading git-diff-tree failed