diff options
Diffstat (limited to 'arch/arm/mach-omap1/board-h2.c')
-rw-r--r-- | arch/arm/mach-omap1/board-h2.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/arch/arm/mach-omap1/board-h2.c b/arch/arm/mach-omap1/board-h2.c index 7329ad549a98..c5b4a3b718cf 100644 --- a/arch/arm/mach-omap1/board-h2.c +++ b/arch/arm/mach-omap1/board-h2.c | |||
@@ -339,7 +339,7 @@ static struct platform_device *h2_devices[] __initdata = { | |||
339 | 339 | ||
340 | static void __init h2_init_smc91x(void) | 340 | static void __init h2_init_smc91x(void) |
341 | { | 341 | { |
342 | if ((omap_request_gpio(0)) < 0) { | 342 | if (gpio_request(0, "SMC91x irq") < 0) { |
343 | printk("Error requesting gpio 0 for smc91x irq\n"); | 343 | printk("Error requesting gpio 0 for smc91x irq\n"); |
344 | return; | 344 | return; |
345 | } | 345 | } |
@@ -425,8 +425,9 @@ static void __init h2_init(void) | |||
425 | 425 | ||
426 | h2_nand_resource.end = h2_nand_resource.start = OMAP_CS2B_PHYS; | 426 | h2_nand_resource.end = h2_nand_resource.start = OMAP_CS2B_PHYS; |
427 | h2_nand_resource.end += SZ_4K - 1; | 427 | h2_nand_resource.end += SZ_4K - 1; |
428 | if (!(omap_request_gpio(H2_NAND_RB_GPIO_PIN))) | 428 | if (gpio_request(H2_NAND_RB_GPIO_PIN, "NAND ready") < 0) |
429 | h2_nand_data.dev_ready = h2_nand_dev_ready; | 429 | BUG(); |
430 | gpio_direction_input(H2_NAND_RB_GPIO_PIN); | ||
430 | 431 | ||
431 | omap_cfg_reg(L3_1610_FLASH_CS2B_OE); | 432 | omap_cfg_reg(L3_1610_FLASH_CS2B_OE); |
432 | omap_cfg_reg(M8_1610_FLASH_CS2B_WE); | 433 | omap_cfg_reg(M8_1610_FLASH_CS2B_WE); |
@@ -438,10 +439,10 @@ static void __init h2_init(void) | |||
438 | /* Irda */ | 439 | /* Irda */ |
439 | #if defined(CONFIG_OMAP_IR) || defined(CONFIG_OMAP_IR_MODULE) | 440 | #if defined(CONFIG_OMAP_IR) || defined(CONFIG_OMAP_IR_MODULE) |
440 | omap_writel(omap_readl(FUNC_MUX_CTRL_A) | 7, FUNC_MUX_CTRL_A); | 441 | omap_writel(omap_readl(FUNC_MUX_CTRL_A) | 7, FUNC_MUX_CTRL_A); |
441 | if (!(omap_request_gpio(H2_IRDA_FIRSEL_GPIO_PIN))) { | 442 | if (gpio_request(H2_IRDA_FIRSEL_GPIO_PIN, "IRDA mode") < 0) |
442 | gpio_direction_output(H2_IRDA_FIRSEL_GPIO_PIN, 0); | 443 | BUG(); |
443 | h2_irda_data.transceiver_mode = h2_transceiver_mode; | 444 | gpio_direction_output(H2_IRDA_FIRSEL_GPIO_PIN, 0); |
444 | } | 445 | h2_irda_data.transceiver_mode = h2_transceiver_mode; |
445 | #endif | 446 | #endif |
446 | 447 | ||
447 | platform_add_devices(h2_devices, ARRAY_SIZE(h2_devices)); | 448 | platform_add_devices(h2_devices, ARRAY_SIZE(h2_devices)); |