USB: gadget: Fix error path in ci13xxx_udc gadget probe function
authorPavankumar Kondeti <pkondeti@codeaurora.org>
Tue, 11 Jan 2011 03:49:21 +0000 (09:19 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 23 Jan 2011 02:49:02 +0000 (18:49 -0800)
commit49d3df53a80deed2251b91f50ae9e1c5caf7ded7
treef00514582d966515e27d345469f2053a2a62b8a6
parent15680cdfc69a7277ba87a8a3a3242d67c4ba5916
USB: gadget: Fix error path in ci13xxx_udc gadget probe function

Don't call gadget driver's unbind when bind is failed.  Initialize
udc->driver only after gadget driver bind is successful.  Otherwise
pull-up can be enabled upon VBUS session even when no gadget is
bounded.

Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/ci13xxx_udc.c