]> git.baikalelectronics.ru Git - kernel.git/commit
usb: musb: use musb->port_mode
authorDaniel Mack <zonque@gmail.com>
Wed, 10 Apr 2013 19:55:49 +0000 (21:55 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 28 May 2013 16:22:25 +0000 (19:22 +0300)
commite4555d18f4875248433d62999c1e52b32ce28204
treeff0e5004f0c13e207c811f62afdaa967bcc640cd
parent132871f5aa896eee021e9dc3397d1229bf630fba
usb: musb: use musb->port_mode

Initialize the host and gadget subsystems of the musb driver only when
the appropriate mode is selected from platform data, or device-tree
information, respectively.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Acked-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_core.c
drivers/usb/musb/musb_virthub.c