usb: renesas_usbhs: fixup device_register timing
commitf8eff0a06116aee127152674e9ea9c51aecf6b69
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 18 Nov 2011 02:19:06 +0000 (17 18:19 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 29 Nov 2011 14:19:03 +0000 (29 23:19 +0900)
tree5281cea33447a188e185edacba72979132ab4211
parent5d193ce8f1fa7c67c7fd7be2c03ef31eed344a4f
usb: renesas_usbhs: fixup device_register timing

current renesas_usbhs is using new style udc_start/stop from
af1d7056a5c1e5eaaf807ddd1423101db84668d0
(usb: gadget: renesas: convert to new style).

But bind() function will fail if it was called before
device_register() (or device_add()).
This patch modifies this issue.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/renesas_usbhs/mod_gadget.c