]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/arm/mach-omap1/board-perseus2.c
ARM: OMAP: Switch to gpio_request/free calls (OMAP and mainline)
[linux-2.6-omap-h63xx.git] / arch / arm / mach-omap1 / board-perseus2.c
index b8f0077f9c7742395cfd2b627e0d14b1e7f9bad6..3b9f907aa89908569da3e101a471083630787146 100644 (file)
@@ -223,8 +223,9 @@ static struct omap_board_config_kernel perseus2_config[] __initdata = {
 
 static void __init omap_perseus2_init(void)
 {
-       if (!(omap_request_gpio(P2_NAND_RB_GPIO_PIN)))
-               nand_data.dev_ready = nand_dev_ready;
+       if (gpio_request(P2_NAND_RB_GPIO_PIN, "NAND ready") < 0)
+               BUG();
+       nand_data.dev_ready = nand_dev_ready;
 
        omap_cfg_reg(L3_1610_FLASH_CS2B_OE);
        omap_cfg_reg(M8_1610_FLASH_CS2B_WE);