usb: gadget: u_serial: fix switch off blocked
authorHaipeng YU <haipeng.yu@stericsson.com>
Wed, 14 Nov 2012 14:40:01 +0000 (15:40 +0100)
committerFelipe Balbi <balbi@ti.com>
Thu, 13 Dec 2012 10:04:46 +0000 (12:04 +0200)
When a device is switched off by software, gserial_cleanup will
be called, and switch off will be blocked in this function
because wake_up_interruptible() in gs_close() can not wake_up
the wait_event() in gserial_cleanup(), it should be changed to
wake_up() to match the wait_event().

Signed-off-by: Haipeng YU <haipeng.yu@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>

No differences found