diff options
author | Jarkko Nikula <jarkko.nikula@nokia.com> | 2008-12-10 20:35:30 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2008-12-10 20:35:30 -0500 |
commit | f2d18fea8b87d09bdda22cc67c36f5f463452a33 (patch) | |
tree | a8641626136a6f14d2873e13f263fa0de6ab04f8 /arch/arm/mach-omap2/board-apollon.c | |
parent | e031ab23deb5a5d9ac5744e69a0627823e81b074 (diff) |
ARM: OMAP: Switch to gpio_request/free calls
Switch to gpio_request/free calls
Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/board-apollon.c')
-rw-r--r-- | arch/arm/mach-omap2/board-apollon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/board-apollon.c b/arch/arm/mach-omap2/board-apollon.c index ab6b8cd23eb4..d83035b436d5 100644 --- a/arch/arm/mach-omap2/board-apollon.c +++ b/arch/arm/mach-omap2/board-apollon.c | |||
@@ -236,7 +236,7 @@ static inline void __init apollon_init_smc91x(void) | |||
236 | udelay(100); | 236 | udelay(100); |
237 | 237 | ||
238 | omap_cfg_reg(W4__24XX_GPIO74); | 238 | omap_cfg_reg(W4__24XX_GPIO74); |
239 | if (omap_request_gpio(APOLLON_ETHR_GPIO_IRQ) < 0) { | 239 | if (gpio_request(APOLLON_ETHR_GPIO_IRQ, "SMC91x irq") < 0) { |
240 | printk(KERN_ERR "Failed to request GPIO%d for smc91x IRQ\n", | 240 | printk(KERN_ERR "Failed to request GPIO%d for smc91x IRQ\n", |
241 | APOLLON_ETHR_GPIO_IRQ); | 241 | APOLLON_ETHR_GPIO_IRQ); |
242 | gpmc_cs_free(APOLLON_ETH_CS); | 242 | gpmc_cs_free(APOLLON_ETH_CS); |
@@ -359,7 +359,7 @@ static void __init apollon_usb_init(void) | |||
359 | /* USB device */ | 359 | /* USB device */ |
360 | /* DEVICE_SUSPEND */ | 360 | /* DEVICE_SUSPEND */ |
361 | omap_cfg_reg(P21_242X_GPIO12); | 361 | omap_cfg_reg(P21_242X_GPIO12); |
362 | omap_request_gpio(12); | 362 | gpio_request(12, "USB suspend"); |
363 | gpio_direction_output(12, 0); | 363 | gpio_direction_output(12, 0); |
364 | } | 364 | } |
365 | 365 | ||