]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
USB: EHCI-OMAP: Switch to gpio_request/free calls
authorJarkko Nikula <jarkko.nikula@nokia.com>
Fri, 31 Oct 2008 12:18:49 +0000 (14:18 +0200)
committerTony Lindgren <tony@atomide.com>
Fri, 21 Nov 2008 23:37:16 +0000 (15:37 -0800)
Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/usb/host/ehci-omap.c

index 4dffba6fc60b00854a6cfd0c53cee5acd77adf3c..1b3266cf60600a9f80d8fddc829cf410b00ea543 100644 (file)
@@ -225,9 +225,9 @@ static int omap_start_ehc(struct platform_device *dev, struct usb_hcd *hcd)
 
 #ifdef EXTERNAL_PHY_RESET
        /* Refer: ISSUE1 */
-       omap_request_gpio(EXT_PHY_RESET_GPIO_PORT1);
+       gpio_request(EXT_PHY_RESET_GPIO_PORT1, "USB1 PHY reset");
        gpio_direction_output(EXT_PHY_RESET_GPIO_PORT1, 0);
-       omap_request_gpio(EXT_PHY_RESET_GPIO_PORT2);
+       gpio_request(EXT_PHY_RESET_GPIO_PORT2, "USB2 PHY reset");
        gpio_direction_output(EXT_PHY_RESET_GPIO_PORT2, 0);
        /* Hold the PHY in RESET for enough time till DIR is high */
        udelay(EXT_PHY_RESET_DELAY);
@@ -393,8 +393,8 @@ static void omap_stop_ehc(struct platform_device *dev, struct usb_hcd *hcd)
 
 
 #ifdef EXTERNAL_PHY_RESET
-       omap_free_gpio(EXT_PHY_RESET_GPIO_PORT1);
-       omap_free_gpio(EXT_PHY_RESET_GPIO_PORT2);
+       gpio_free(EXT_PHY_RESET_GPIO_PORT1);
+       gpio_free(EXT_PHY_RESET_GPIO_PORT2);
 #endif
 
        dev_dbg(hcd->self.controller,