USB: musb: do not work if no gadget driver is loaded
authorFelipe Balbi <felipe.balbi@nokia.com>
Tue, 15 Dec 2009 11:47:30 +0000 (13:47 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Dec 2009 19:34:17 +0000 (11:34 -0800)
commitcd42fef0a0b061817904fd6feb0de66830794857
tree39f03b9d03f517c644b6e463ee733ee0959c2104
parentd4c433fe6f04195a1a0d2146d9f11ad45eecef86
USB: musb: do not work if no gadget driver is loaded

On OTG and gadget-only configurations, we need a gadget driver
in order to work properly, so avoid changing operation modes
when there's no gadget driver loaded.

Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Anand Gadiyar <gadiyar@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/musb/musb_core.c