diff options
author | Javier Martinez Canillas <martinez.javier@gmail.com> | 2010-09-09 17:31:29 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-22 13:21:38 -0400 |
commit | e9137c2e44116a1fcb82bb99dc84318e792c150b (patch) | |
tree | ae7f9d642c1589e15eb3787c5b723ff4a85ce05b /drivers/usb/host/isp1362-hcd.c | |
parent | 5c836e4d583701a5eecb288b5f131da39115f5ec (diff) |
USB: isp1362-hcd: Removes CONFIG_USB_OTG dependent code, fix build breakage
In today linux-next I got a compile error on usb/host/isp1362-hcd:
drivers/usb/host/isp1362-hcd.c: In function ‘isp1362_hub_control’:
drivers/usb/host/isp1362-hcd.c:1680: error: ‘ohci’ undeclared (first use in this function)
The problem is when the CONFIG_USB_OTG option is enabled.
ohci variable is never declared and there isn't any CONFIG_USB_OTG dependent code
besides the portion defined in isp1362_hub_control.
So I think that maybe USB OTG support is not needed/supported.
This patch removes the CONFIG_USB_OTG dependent block so the driver can compile cleanly.
Signed-off-by: Javier Martinez Canillas <martinez.javier@gmail.com>
Cc: Mike Frysinger <vapier@gentoo.org>
Cc: Lothar Wassmann <LW@KARO-electronics.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/host/isp1362-hcd.c')
-rw-r--r-- | drivers/usb/host/isp1362-hcd.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/usb/host/isp1362-hcd.c b/drivers/usb/host/isp1362-hcd.c index 0587ad4ce5c2..ae3044019382 100644 --- a/drivers/usb/host/isp1362-hcd.c +++ b/drivers/usb/host/isp1362-hcd.c | |||
@@ -1676,13 +1676,6 @@ static int isp1362_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, | |||
1676 | switch (wValue) { | 1676 | switch (wValue) { |
1677 | case USB_PORT_FEAT_SUSPEND: | 1677 | case USB_PORT_FEAT_SUSPEND: |
1678 | _DBG(0, "USB_PORT_FEAT_SUSPEND\n"); | 1678 | _DBG(0, "USB_PORT_FEAT_SUSPEND\n"); |
1679 | #ifdef CONFIG_USB_OTG | ||
1680 | if (ohci->hcd.self.otg_port == (wIndex + 1) && | ||
1681 | ohci->hcd.self.b_hnp_enable) { | ||
1682 | start_hnp(ohci); | ||
1683 | break; | ||
1684 | } | ||
1685 | #endif | ||
1686 | spin_lock_irqsave(&isp1362_hcd->lock, flags); | 1679 | spin_lock_irqsave(&isp1362_hcd->lock, flags); |
1687 | isp1362_write_reg32(isp1362_hcd, HCRHPORT1 + wIndex, RH_PS_PSS); | 1680 | isp1362_write_reg32(isp1362_hcd, HCRHPORT1 + wIndex, RH_PS_PSS); |
1688 | isp1362_hcd->rhport[wIndex] = | 1681 | isp1362_hcd->rhport[wIndex] = |