]> git.karo-electronics.de Git - linux-beck.git/commit
usb: gadget: renesas_usbhs: bugfix: don't modify platform data
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 13 Oct 2011 04:02:22 +0000 (21:02 -0700)
committerFelipe Balbi <balbi@ti.com>
Thu, 13 Oct 2011 17:41:53 +0000 (20:41 +0300)
commit482982062f1bc25ffb5383ab724d73d1a7af07cf
treea086d74a44881a30ecdbd9d8b261bcfc55df19fe
parent034d7c13a79c67d3b52dd782d68e6c324613878a
usb: gadget: renesas_usbhs: bugfix: don't modify platform data

renesas_usbhs has default callback functions and settings.
And it tried overwrite to platform private data
if platform doesn't have them.
So, if renesas_usbhs was compiled as module,
it will be hung-up on 2nd insmod.
This patch fixup it.
Special thanks to Bastian

Reported-by: Bastian Hecht <hechtb@googlemail.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/renesas_usbhs/common.c
drivers/usb/renesas_usbhs/common.h
drivers/usb/renesas_usbhs/mod.c