summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap1/board-fsample.c
diff options
context:
space:
mode:
authorSasha Levin <sasha.levin@oracle.com>2012-11-08 21:23:09 +0100
committerTony Lindgren <tony@atomide.com>2012-11-13 00:20:44 +0100
commit0449410b0b8aeafa9b7e8bb719e4eeda8a5623fd (patch)
tree84867c61bd5e0f2185ee6a9e2b7e46c1e78d78b1 /arch/arm/mach-omap1/board-fsample.c
parentOMAP: board-generic: enable DSS for panda & sdp boards (diff)
downloadlinux-0449410b0b8aeafa9b7e8bb719e4eeda8a5623fd.tar.xz
linux-0449410b0b8aeafa9b7e8bb719e4eeda8a5623fd.zip
ARM: OMAP1: use BUG_ON where possible
Just use BUG_ON() instead of constructions such as: if (...) BUG() A simplified version of the semantic patch that makes this transformation is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ expression e; @@ - if (e) BUG(); + BUG_ON(e); // </smpl> Signed-off-by: Sasha Levin <sasha.levin@oracle.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap1/board-fsample.c')
-rw-r--r--arch/arm/mach-omap1/board-fsample.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-omap1/board-fsample.c b/arch/arm/mach-omap1/board-fsample.c
index 4b6de70c47a6..756872e9c337 100644
--- a/arch/arm/mach-omap1/board-fsample.c
+++ b/arch/arm/mach-omap1/board-fsample.c
@@ -307,8 +307,7 @@ static void __init omap_fsample_init(void)
fsample_init_smc91x();
- if (gpio_request(FSAMPLE_NAND_RB_GPIO_PIN, "NAND ready") < 0)
- BUG();
+ BUG_ON(gpio_request(FSAMPLE_NAND_RB_GPIO_PIN, "NAND ready") < 0);
gpio_direction_input(FSAMPLE_NAND_RB_GPIO_PIN);
omap_cfg_reg(L3_1610_FLASH_CS2B_OE);