Commit 83d8005f authored by Jarkko Nikula's avatar Jarkko Nikula Committed by Tony Lindgren

USB: EHCI-OMAP: Switch to gpio_request/free calls

Signed-off-by: default avatarJarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 6ef9e311
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment