X-Git-Url: http://rtime.felk.cvut.cz/gitweb/can-eth-gw-linux.git/blobdiff_plain/9c7466b217af784280d9fc841bbd559ef3bf33e9..a11da7df6543b5f71a150b47c0d08ecf0799a0f3:/arch/arm/mach-omap1/board-h2.c diff --git a/arch/arm/mach-omap1/board-h2.c b/arch/arm/mach-omap1/board-h2.c index dcf364d1a8b1..2274bd677efc 100644 --- a/arch/arm/mach-omap1/board-h2.c +++ b/arch/arm/mach-omap1/board-h2.c @@ -412,8 +412,7 @@ static void __init h2_init(void) h2_nand_resource.end = h2_nand_resource.start = OMAP_CS2B_PHYS; h2_nand_resource.end += SZ_4K - 1; - if (gpio_request(H2_NAND_RB_GPIO_PIN, "NAND ready") < 0) - BUG(); + BUG_ON(gpio_request(H2_NAND_RB_GPIO_PIN, "NAND ready") < 0); gpio_direction_input(H2_NAND_RB_GPIO_PIN); omap_cfg_reg(L3_1610_FLASH_CS2B_OE);