usb: gadget: s3c2410: fix gadget->dev registration
authorFelipe Balbi <balbi@ti.com>
Mon, 25 Feb 2013 19:11:50 +0000 (21:11 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 4 Mar 2013 07:33:27 +0000 (09:33 +0200)
commit7597a49b1e984bfb9930f832af963de1120d30e4
tree5ff2ed6f1d97b7c198e38e31898237977984c370
parent56aa45adcc5b793369e535a4b7177f1c7314b577
usb: gadget: s3c2410: 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 s3c2410 mistake.

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