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 | 15f74b0335962e8554c91e52d588dc9f8ee7098d (patch) | |
tree | b5cf73b94f6c993822f4b40762c5ccb7540ed7cb /arch/arm/mach-omap1/board-palmz71.c | |
parent | e918edf7c2f2270dcf18cdcbdf86174a013a124e (diff) |
ARM: OMAP: use gpio_to_irq
Have most uses of OMAP_GPIO_IRQ() use gpio_to_irq() instead.
Calls used for table initialization are left alone, at least
this time around.
(This patch is for code in both the OMAP tree and mainline.)
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap1/board-palmz71.c')
-rw-r--r-- | arch/arm/mach-omap1/board-palmz71.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-omap1/board-palmz71.c b/arch/arm/mach-omap1/board-palmz71.c index dec20104eb58..1b7d3580d148 100644 --- a/arch/arm/mach-omap1/board-palmz71.c +++ b/arch/arm/mach-omap1/board-palmz71.c | |||
@@ -297,11 +297,11 @@ palmz71_powercable(int irq, void *dev_id) | |||
297 | { | 297 | { |
298 | if (gpio_get_value(PALMZ71_USBDETECT_GPIO)) { | 298 | if (gpio_get_value(PALMZ71_USBDETECT_GPIO)) { |
299 | printk(KERN_INFO "PM: Power cable connected\n"); | 299 | printk(KERN_INFO "PM: Power cable connected\n"); |
300 | set_irq_type(OMAP_GPIO_IRQ(PALMZ71_USBDETECT_GPIO), | 300 | set_irq_type(gpio_to_irq(PALMZ71_USBDETECT_GPIO), |
301 | IRQ_TYPE_EDGE_FALLING); | 301 | IRQ_TYPE_EDGE_FALLING); |
302 | } else { | 302 | } else { |
303 | printk(KERN_INFO "PM: Power cable disconnected\n"); | 303 | printk(KERN_INFO "PM: Power cable disconnected\n"); |
304 | set_irq_type(OMAP_GPIO_IRQ(PALMZ71_USBDETECT_GPIO), | 304 | set_irq_type(gpio_to_irq(PALMZ71_USBDETECT_GPIO), |
305 | IRQ_TYPE_EDGE_RISING); | 305 | IRQ_TYPE_EDGE_RISING); |
306 | } | 306 | } |
307 | return IRQ_HANDLED; | 307 | return IRQ_HANDLED; |
@@ -339,12 +339,12 @@ palmz71_gpio_setup(int early) | |||
339 | return; | 339 | return; |
340 | } | 340 | } |
341 | gpio_direction_input(PALMZ71_USBDETECT_GPIO); | 341 | gpio_direction_input(PALMZ71_USBDETECT_GPIO); |
342 | if (request_irq(OMAP_GPIO_IRQ(PALMZ71_USBDETECT_GPIO), | 342 | if (request_irq(gpio_to_irq(PALMZ71_USBDETECT_GPIO), |
343 | palmz71_powercable, IRQF_SAMPLE_RANDOM, | 343 | palmz71_powercable, IRQF_SAMPLE_RANDOM, |
344 | "palmz71-cable", 0)) | 344 | "palmz71-cable", 0)) |
345 | printk(KERN_ERR | 345 | printk(KERN_ERR |
346 | "IRQ request for power cable failed!\n"); | 346 | "IRQ request for power cable failed!\n"); |
347 | palmz71_powercable(OMAP_GPIO_IRQ(PALMZ71_USBDETECT_GPIO), 0); | 347 | palmz71_powercable(gpio_to_irq(PALMZ71_USBDETECT_GPIO), 0); |
348 | } | 348 | } |
349 | } | 349 | } |
350 | 350 | ||