diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2008-12-10 20:35:26 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2008-12-10 20:35:26 -0500 |
commit | 40e3925ba15b604c9ff87154d77a914221d11cdc (patch) | |
tree | 08fb9b25a6b055e262bca7e8053fb2a5eb73cba9 /arch/arm/mach-omap2 | |
parent | 0b84b5ca43a9c86cfad848c135fdbf7c72af68fa (diff) |
ARM: OMAP: switch to gpio_direction_input
More switchover to the cross-platform GPIO interface:
use gpio_direction_input(), not an OMAP-specific call.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/board-2430sdp.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/board-apollon.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-omap2/usb-tusb6010.c | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/arch/arm/mach-omap2/board-2430sdp.c b/arch/arm/mach-omap2/board-2430sdp.c index 24688efaa445..f844a670f072 100644 --- a/arch/arm/mach-omap2/board-2430sdp.c +++ b/arch/arm/mach-omap2/board-2430sdp.c | |||
@@ -174,7 +174,7 @@ static inline void __init sdp2430_init_smc91x(void) | |||
174 | gpmc_cs_free(eth_cs); | 174 | gpmc_cs_free(eth_cs); |
175 | goto out; | 175 | goto out; |
176 | } | 176 | } |
177 | omap_set_gpio_direction(OMAP24XX_ETHR_GPIO_IRQ, 1); | 177 | gpio_direction_input(OMAP24XX_ETHR_GPIO_IRQ); |
178 | 178 | ||
179 | out: | 179 | out: |
180 | clk_disable(gpmc_fck); | 180 | clk_disable(gpmc_fck); |
diff --git a/arch/arm/mach-omap2/board-apollon.c b/arch/arm/mach-omap2/board-apollon.c index a4ba52c8119b..abc916723702 100644 --- a/arch/arm/mach-omap2/board-apollon.c +++ b/arch/arm/mach-omap2/board-apollon.c | |||
@@ -242,7 +242,7 @@ static inline void __init apollon_init_smc91x(void) | |||
242 | gpmc_cs_free(APOLLON_ETH_CS); | 242 | gpmc_cs_free(APOLLON_ETH_CS); |
243 | goto out; | 243 | goto out; |
244 | } | 244 | } |
245 | omap_set_gpio_direction(APOLLON_ETHR_GPIO_IRQ, 1); | 245 | gpio_direction_input(APOLLON_ETHR_GPIO_IRQ); |
246 | 246 | ||
247 | out: | 247 | out: |
248 | clk_disable(gpmc_fck); | 248 | clk_disable(gpmc_fck); |
@@ -327,15 +327,15 @@ static void __init apollon_sw_init(void) | |||
327 | /* Enter SW - Y11 */ | 327 | /* Enter SW - Y11 */ |
328 | omap_cfg_reg(Y11_242X_GPIO16); | 328 | omap_cfg_reg(Y11_242X_GPIO16); |
329 | omap_request_gpio(SW_ENTER_GPIO16); | 329 | omap_request_gpio(SW_ENTER_GPIO16); |
330 | omap_set_gpio_direction(SW_ENTER_GPIO16, 1); | 330 | gpio_direction_input(SW_ENTER_GPIO16); |
331 | /* Up SW - AA12 */ | 331 | /* Up SW - AA12 */ |
332 | omap_cfg_reg(AA12_242X_GPIO17); | 332 | omap_cfg_reg(AA12_242X_GPIO17); |
333 | omap_request_gpio(SW_UP_GPIO17); | 333 | omap_request_gpio(SW_UP_GPIO17); |
334 | omap_set_gpio_direction(SW_UP_GPIO17, 1); | 334 | gpio_direction_input(SW_UP_GPIO17); |
335 | /* Down SW - AA8 */ | 335 | /* Down SW - AA8 */ |
336 | omap_cfg_reg(AA8_242X_GPIO58); | 336 | omap_cfg_reg(AA8_242X_GPIO58); |
337 | omap_request_gpio(SW_DOWN_GPIO58); | 337 | omap_request_gpio(SW_DOWN_GPIO58); |
338 | omap_set_gpio_direction(SW_DOWN_GPIO58, 1); | 338 | gpio_direction_input(SW_DOWN_GPIO58); |
339 | 339 | ||
340 | set_irq_type(OMAP_GPIO_IRQ(SW_ENTER_GPIO16), IRQ_TYPE_EDGE_RISING); | 340 | set_irq_type(OMAP_GPIO_IRQ(SW_ENTER_GPIO16), IRQ_TYPE_EDGE_RISING); |
341 | if (request_irq(OMAP_GPIO_IRQ(SW_ENTER_GPIO16), &apollon_sw_interrupt, | 341 | if (request_irq(OMAP_GPIO_IRQ(SW_ENTER_GPIO16), &apollon_sw_interrupt, |
diff --git a/arch/arm/mach-omap2/usb-tusb6010.c b/arch/arm/mach-omap2/usb-tusb6010.c index 10ef464d6be7..eb2399dc74c2 100644 --- a/arch/arm/mach-omap2/usb-tusb6010.c +++ b/arch/arm/mach-omap2/usb-tusb6010.c | |||
@@ -297,7 +297,7 @@ tusb6010_setup_interface(struct musb_hdrc_platform_data *data, | |||
297 | printk(error, 3, status); | 297 | printk(error, 3, status); |
298 | return status; | 298 | return status; |
299 | } | 299 | } |
300 | omap_set_gpio_direction(irq, 1); | 300 | gpio_direction_input(irq); |
301 | tusb_resources[2].start = irq + IH_GPIO_BASE; | 301 | tusb_resources[2].start = irq + IH_GPIO_BASE; |
302 | 302 | ||
303 | /* set up memory timings ... can speed them up later */ | 303 | /* set up memory timings ... can speed them up later */ |