diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-08-04 07:12:00 +0000 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-08-08 21:13:01 +0200 |
commit | bb1a5805edf1d1e5da02b23dfca76ed99dfa18b1 (patch) | |
tree | 9a8e70d56c36268364e5915f5fc2fb8ae5db99e5 /drivers/usb/host/ohci-omap.c | |
parent | b2f0fa828ee7265028f1bca87928b0dc69663b53 (diff) | |
download | op-kernel-dev-bb1a5805edf1d1e5da02b23dfca76ed99dfa18b1.zip op-kernel-dev-bb1a5805edf1d1e5da02b23dfca76ed99dfa18b1.tar.gz |
usb/ohci-omap: remove unused variable
Commit c2e935a7d "USB: move transceiver from ehci_hcd and ohci_hcd to
hcd and rename it as phy" removed the last use of the "ohci" variable
in the usb_hcd_omap_remove function, but left the variable in place
unused.
Without this patch, building omap1_defconfig results in:
In file included from drivers/usb/host/ohci-hcd.c:1013:0:
drivers/usb/host/ohci-omap.c: In function 'usb_hcd_omap_remove':
drivers/usb/host/ohci-omap.c:406:19: warning: unused variable 'ohci' [-Wunused-variable]
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Richard Zhao <richard.zhao@freescale.com>
Diffstat (limited to 'drivers/usb/host/ohci-omap.c')
-rw-r--r-- | drivers/usb/host/ohci-omap.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/host/ohci-omap.c b/drivers/usb/host/ohci-omap.c index e7d75d2..f8b2d91 100644 --- a/drivers/usb/host/ohci-omap.c +++ b/drivers/usb/host/ohci-omap.c @@ -403,8 +403,6 @@ err0: static inline void usb_hcd_omap_remove (struct usb_hcd *hcd, struct platform_device *pdev) { - struct ohci_hcd *ohci = hcd_to_ohci (hcd); - usb_remove_hcd(hcd); if (!IS_ERR_OR_NULL(hcd->phy)) { (void) otg_set_host(hcd->phy->otg, 0); |