usb: gadget: udc: Fix initialization sequence with extcon present
authorKamil Debski <k.debski@samsung.com>
Mon, 9 Jun 2014 12:12:41 +0000 (14:12 +0200)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:59:53 +0000 (11:59 +0900)
commite6d791b365467674e3ebb9647919e58d12f985fa
treecec002d087ecdcd9c0f2571be8cd0e1ccf49bc00
parentb8e91f4ad89b5f68ec852f004b71ae1b366430e0
usb: gadget: udc: Fix initialization sequence with extcon present

Prior to this patch during initialization the udc would switch off regardless
of the current state of the cable. Then it would be enabled if the cable is
present. After applying this patch the udc would be disabled only if the cable
is not present during initialization.

Change-Id: Icfd7e42f9890798afb92428f4041dcffefaa2a08
Signed-off-by: Kamil Debski <k.debski@samsung.com>
drivers/usb/gadget/udc-core.c