usb: gadget: pxa25x: fix gadget->dev registration
authorFelipe Balbi <balbi@ti.com>
Mon, 25 Feb 2013 19:15:41 +0000 (21:15 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 4 Mar 2013 07:33:28 +0000 (09:33 +0200)
commit9992a9979fd463903e1a34b68d609441f36bafd4
treec0fa064eea47065475a0f76d795331c9ac03d1a8
parent7597a49b1e984bfb9930f832af963de1120d30e4
usb: gadget: pxa25x: fix gadget->dev registration

Whenever ->udc_start() gets called, gadget driver
has already being bound to the udc controller, which
means that gadget->dev had to be already initialized
and added to driver model.

This patch fixes pxa25x mistake.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/pxa25x_udc.c