]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: musb: Remove usb_disable() check in module_init()
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Thu, 26 Dec 2013 12:24:52 +0000 (09:24 -0300)
committerFelipe Balbi <balbi@ti.com>
Thu, 26 Dec 2013 16:17:40 +0000 (10:17 -0600)
commit89f836a8c56bfea6585a09f7afff7094968a4fd0
treef0d18973426f0b8514124a9456fbbeac84622116
parent4685d021f5cd04bd2682bd4db6dfa9f784fabf9f
usb: musb: Remove usb_disable() check in module_init()

Removing the check to usb_disable() before registering the platform
driver allows to build this driver when !USB && USB_GADGET, to be
used in gadget-only mode.

Also, use module_platform_driver() to register the platform driver.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_core.c