From: Jarkko Nikula Date: Tue, 25 Nov 2008 14:12:14 +0000 (+0200) Subject: USB: OHCI-OMAP: Switch to gpio_request/free calls (OMAP and mainline) X-Git-Tag: v2.6.28-omap1~118 X-Git-Url: http://pilppa.org/gitweb/?a=commitdiff_plain;h=9f836ee9030c84c1fbfe7f4f7465e8a1e7fca0d0;p=linux-2.6-omap-h63xx.git USB: OHCI-OMAP: Switch to gpio_request/free calls (OMAP and mainline) Signed-off-by: Jarkko Nikula Signed-off-by: Tony Lindgren --- diff --git a/drivers/usb/host/ohci-omap.c b/drivers/usb/host/ohci-omap.c index 22f6d1900b5..4bbddb73abd 100644 --- a/drivers/usb/host/ohci-omap.c +++ b/drivers/usb/host/ohci-omap.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include @@ -25,7 +26,6 @@ #include #include -#include #include #include @@ -254,7 +254,7 @@ static int ohci_omap_init(struct usb_hcd *hcd) /* gpio9 for overcurrent detction */ omap_cfg_reg(W8_1610_GPIO9); - omap_request_gpio(9); + gpio_request(9, "OHCI overcurrent"); gpio_direction_input(9); /* for paranoia's sake: disable USB.PUEN */ @@ -407,7 +407,7 @@ usb_hcd_omap_remove (struct usb_hcd *hcd, struct platform_device *pdev) put_device(ohci->transceiver->dev); } if (machine_is_omap_osk()) - omap_free_gpio(9); + gpio_free(9); iounmap(hcd->regs); release_mem_region(hcd->rsrc_start, hcd->rsrc_len); usb_put_hcd(hcd);