]> git.baikalelectronics.ru Git - kernel.git/commit
USB: isp1362-hcd: Removes CONFIG_USB_OTG dependent code, fix build breakage
authorJavier Martinez Canillas <martinez.javier@gmail.com>
Thu, 9 Sep 2010 21:31:29 +0000 (17:31 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Oct 2010 17:21:38 +0000 (10:21 -0700)
commit6ee1cc63a003cbc0b8f7fa1d08764dacdd20da36
treeae7f9d642c1589e15eb3787c5b723ff4a85ce05b
parent4a3d59115321aaa46118662e6c148425b742fbc5
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>
drivers/usb/host/isp1362-hcd.c