usb: gadget: r8a66597-udc: fix for udc-newstyle
commitb8cbbf803d5ad0971665dd502d784148464c6d1a
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Mon, 31 Oct 2011 07:01:29 +0000 (31 16:01 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Nov 2011 19:51:19 +0000 (14 11:51 -0800)
treef43e481d6d040f1e18c5c8756e291b679499d287
parent0de174b56ba70e5c0a26de9b5d2889260164d666
usb: gadget: r8a66597-udc: fix for udc-newstyle

The udc-newstyle needs device_register in probe() of platform_device.
If it doesn't call, kernel panic happens in the sysfs_create_dir() when
we run modprobe a gadget driver.

[ balbi@ti.com : fix compile warning introduced by this patch ]

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/r8a66597-udc.c