linux/drivers/usb/isp1760
Laurent Pinchart d21daf1e90 usb: isp1760: Fix USB disabled check
The isp1760 driver registration function returns an error if USB is
disabled. This made sense when the driver only supported host
controllers, but now that it supports peripheral controllers host
support isn't mandatory anymore.

Fix this by returning an error only when both the HCD and UDC functions
are disabled, either through the kernel configuration or at runtime.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2015-01-27 09:39:51 -06:00
..
isp1760-core.c usb: isp1760: Fix USB disabled check 2015-01-27 09:39:51 -06:00
isp1760-core.h
isp1760-hcd.c usb: isp1760: Fix USB disabled check 2015-01-27 09:39:51 -06:00
isp1760-hcd.h
isp1760-if.c usb: isp1760: Remove duplicate usb_disabled() check 2015-01-27 09:39:47 -06:00
isp1760-regs.h
isp1760-udc.c usb: isp1760: Fix USB disabled check 2015-01-27 09:39:51 -06:00
isp1760-udc.h
Kconfig
Makefile