]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: r8a66597-udc: fix for udc-newstyle
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Mon, 31 Oct 2011 07:01:29 +0000 (16:01 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Nov 2011 19:51:19 +0000 (11:51 -0800)
commit3a35b2c6df4bdb91f353393eb45fdb218c9ea170
treef43e481d6d040f1e18c5c8756e291b679499d287
parent0e736f44a540525ca653599ae58a451c47d141d3
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