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-omap1 | |
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-omap1')
-rw-r--r-- | arch/arm/mach-omap1/board-palmte.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-palmz71.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-voiceblue.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap1/fpga.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap1/serial.c | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/arch/arm/mach-omap1/board-palmte.c b/arch/arm/mach-omap1/board-palmte.c index df663ba7ea88..0995a0fc1dd0 100644 --- a/arch/arm/mach-omap1/board-palmte.c +++ b/arch/arm/mach-omap1/board-palmte.c | |||
@@ -351,14 +351,14 @@ static void __init palmte_misc_gpio_setup(void) | |||
351 | printk(KERN_ERR "Could not reserve PINTDAV GPIO!\n"); | 351 | printk(KERN_ERR "Could not reserve PINTDAV GPIO!\n"); |
352 | return; | 352 | return; |
353 | } | 353 | } |
354 | omap_set_gpio_direction(PALMTE_PINTDAV_GPIO, 1); | 354 | gpio_direction_input(PALMTE_PINTDAV_GPIO); |
355 | 355 | ||
356 | /* Set USB-or-DC-IN pin as input (unused) */ | 356 | /* Set USB-or-DC-IN pin as input (unused) */ |
357 | if (omap_request_gpio(PALMTE_USB_OR_DC_GPIO)) { | 357 | if (omap_request_gpio(PALMTE_USB_OR_DC_GPIO)) { |
358 | printk(KERN_ERR "Could not reserve cable signal GPIO!\n"); | 358 | printk(KERN_ERR "Could not reserve cable signal GPIO!\n"); |
359 | return; | 359 | return; |
360 | } | 360 | } |
361 | omap_set_gpio_direction(PALMTE_USB_OR_DC_GPIO, 1); | 361 | gpio_direction_input(PALMTE_USB_OR_DC_GPIO); |
362 | } | 362 | } |
363 | 363 | ||
364 | static void __init omap_palmte_init(void) | 364 | static void __init omap_palmte_init(void) |
diff --git a/arch/arm/mach-omap1/board-palmz71.c b/arch/arm/mach-omap1/board-palmz71.c index c33766c4dd92..5a232adaefcc 100644 --- a/arch/arm/mach-omap1/board-palmz71.c +++ b/arch/arm/mach-omap1/board-palmz71.c | |||
@@ -331,7 +331,7 @@ palmz71_gpio_setup(int early) | |||
331 | printk(KERN_ERR "Could not reserve WP GPIO!\n"); | 331 | printk(KERN_ERR "Could not reserve WP GPIO!\n"); |
332 | return; | 332 | return; |
333 | } | 333 | } |
334 | omap_set_gpio_direction(PALMZ71_MMC_WP_GPIO, 1); | 334 | gpio_direction_input(PALMZ71_MMC_WP_GPIO); |
335 | 335 | ||
336 | /* Monitor the Power-cable-connected signal */ | 336 | /* Monitor the Power-cable-connected signal */ |
337 | if (omap_request_gpio(PALMZ71_USBDETECT_GPIO)) { | 337 | if (omap_request_gpio(PALMZ71_USBDETECT_GPIO)) { |
@@ -339,7 +339,7 @@ palmz71_gpio_setup(int early) | |||
339 | "Could not reserve cable signal GPIO!\n"); | 339 | "Could not reserve cable signal GPIO!\n"); |
340 | return; | 340 | return; |
341 | } | 341 | } |
342 | omap_set_gpio_direction(PALMZ71_USBDETECT_GPIO, 1); | 342 | gpio_direction_input(PALMZ71_USBDETECT_GPIO); |
343 | if (request_irq(OMAP_GPIO_IRQ(PALMZ71_USBDETECT_GPIO), | 343 | if (request_irq(OMAP_GPIO_IRQ(PALMZ71_USBDETECT_GPIO), |
344 | palmz71_powercable, IRQF_SAMPLE_RANDOM, | 344 | palmz71_powercable, IRQF_SAMPLE_RANDOM, |
345 | "palmz71-cable", 0)) | 345 | "palmz71-cable", 0)) |
diff --git a/arch/arm/mach-omap1/board-voiceblue.c b/arch/arm/mach-omap1/board-voiceblue.c index d7ab11acc7eb..86e73b7bffa9 100644 --- a/arch/arm/mach-omap1/board-voiceblue.c +++ b/arch/arm/mach-omap1/board-voiceblue.c | |||
@@ -256,7 +256,7 @@ void voiceblue_wdt_disable(void) | |||
256 | gpio_set_value(0, 0); | 256 | gpio_set_value(0, 0); |
257 | gpio_set_value(0, 1); | 257 | gpio_set_value(0, 1); |
258 | gpio_set_value(0, 0); | 258 | gpio_set_value(0, 0); |
259 | omap_set_gpio_direction(0, 1); | 259 | gpio_direction_input(0); |
260 | } | 260 | } |
261 | 261 | ||
262 | void voiceblue_wdt_ping(void) | 262 | void voiceblue_wdt_ping(void) |
diff --git a/arch/arm/mach-omap1/fpga.c b/arch/arm/mach-omap1/fpga.c index 04995381aa5c..40cf504a39f4 100644 --- a/arch/arm/mach-omap1/fpga.c +++ b/arch/arm/mach-omap1/fpga.c | |||
@@ -178,7 +178,7 @@ void omap1510_fpga_init_irq(void) | |||
178 | * gpio.[ch] | 178 | * gpio.[ch] |
179 | */ | 179 | */ |
180 | omap_request_gpio(13); | 180 | omap_request_gpio(13); |
181 | omap_set_gpio_direction(13, 1); | 181 | gpio_direction_input(13); |
182 | set_irq_type(OMAP_GPIO_IRQ(13), IRQ_TYPE_EDGE_RISING); | 182 | set_irq_type(OMAP_GPIO_IRQ(13), IRQ_TYPE_EDGE_RISING); |
183 | set_irq_chained_handler(OMAP1510_INT_FPGA, innovator_fpga_IRQ_demux); | 183 | set_irq_chained_handler(OMAP1510_INT_FPGA, innovator_fpga_IRQ_demux); |
184 | } | 184 | } |
diff --git a/arch/arm/mach-omap1/serial.c b/arch/arm/mach-omap1/serial.c index 528691d5cb51..1a0bc47a67c8 100644 --- a/arch/arm/mach-omap1/serial.c +++ b/arch/arm/mach-omap1/serial.c | |||
@@ -250,7 +250,7 @@ static void __init omap_serial_set_port_wakeup(int gpio_nr) | |||
250 | gpio_nr); | 250 | gpio_nr); |
251 | return; | 251 | return; |
252 | } | 252 | } |
253 | omap_set_gpio_direction(gpio_nr, 1); | 253 | gpio_direction_input(gpio_nr); |
254 | ret = request_irq(OMAP_GPIO_IRQ(gpio_nr), &omap_serial_wake_interrupt, | 254 | ret = request_irq(OMAP_GPIO_IRQ(gpio_nr), &omap_serial_wake_interrupt, |
255 | IRQF_TRIGGER_RISING, "serial wakeup", NULL); | 255 | IRQF_TRIGGER_RISING, "serial wakeup", NULL); |
256 | if (ret) { | 256 | if (ret) { |