usb: gadget: s3c-hsudc: move device registration to probe
authorHeiko Stübner <heiko@sntech.de>
Mon, 19 Dec 2011 18:41:05 +0000 (19:41 +0100)
committerFelipe Balbi <balbi@ti.com>
Wed, 21 Dec 2011 11:24:39 +0000 (13:24 +0200)
commit103495aaf0e7674f6d7995982b48118188c247eb
tree2df5b113c7598b294685a2910a22327014993751
parente9bcb9e5feb0f5d1ccf155b6ca9e1b8f7147f0d6
usb: gadget: s3c-hsudc: move device registration to probe

Instead of adding and deleting the gadget device in the start and stop
invocations. Use device_register in the probe method to initialize
and add the gadget device.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/s3c-hsudc.c