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>
This commit is contained in:

committed by
Tony Lindgren

parent
0b84b5ca43
commit
40e3925ba1
@@ -331,7 +331,7 @@ palmz71_gpio_setup(int early)
|
||||
printk(KERN_ERR "Could not reserve WP GPIO!\n");
|
||||
return;
|
||||
}
|
||||
omap_set_gpio_direction(PALMZ71_MMC_WP_GPIO, 1);
|
||||
gpio_direction_input(PALMZ71_MMC_WP_GPIO);
|
||||
|
||||
/* Monitor the Power-cable-connected signal */
|
||||
if (omap_request_gpio(PALMZ71_USBDETECT_GPIO)) {
|
||||
@@ -339,7 +339,7 @@ palmz71_gpio_setup(int early)
|
||||
"Could not reserve cable signal GPIO!\n");
|
||||
return;
|
||||
}
|
||||
omap_set_gpio_direction(PALMZ71_USBDETECT_GPIO, 1);
|
||||
gpio_direction_input(PALMZ71_USBDETECT_GPIO);
|
||||
if (request_irq(OMAP_GPIO_IRQ(PALMZ71_USBDETECT_GPIO),
|
||||
palmz71_powercable, IRQF_SAMPLE_RANDOM,
|
||||
"palmz71-cable", 0))
|
||||
|
Reference in New Issue
Block a user