usb: udc-core: set gadget state as not attached after unloading module
authorPeter Chen <peter.chen@freescale.com>
Tue, 29 Apr 2014 05:26:29 +0000 (13:26 +0800)
committerFelipe Balbi <balbi@ti.com>
Mon, 12 May 2014 17:34:47 +0000 (12:34 -0500)
commitb5fb8d0a40eb52039e8df6fadafa95ecdcdc3026
treee5e4a70a4825d95da0e6cddffe69b8a8cbb8eb61
parent6027f3173e797bf27fc5053aa74c9f40f85538d8
usb: udc-core: set gadget state as not attached after unloading module

Set gadget state as "not attached" after unloading gadget module, or
its state will be unchanged after we unload gadget module.

Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc-core.c