OSDN Git Service

usb: gadget: at91udc: don't overwrite driver data
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Fri, 20 Jul 2012 18:34:24 +0000 (20:34 +0200)
committerFelipe Balbi <balbi@ti.com>
Thu, 6 Sep 2012 16:52:29 +0000 (19:52 +0300)
commit8b7dda554cf61e87523dee412eaf598f8646bd79
tree1535ac7e6b3256dd0d1ad27f45d8aa2d73e77092
parent066618bc350cc6035c3a0fc559a8ac02f55785a9
usb: gadget: at91udc: don't overwrite driver data

The driver was converted to the new start/stop interface in f3d8bf34c2
("usb: gadget: at91_udc: convert to new style start/stop interface").
I overlooked that the driver is overwritting the private data which is
used by the composite framework. The udc driver doesn't read it, it is
only written here.

Tested-by: Fabio Porcedda <fabio.porcedda@gmail.com>
Tested-by: Mario Isidoro <Mario.Isidoro@tecmic.pt>
Cc: <stable@kernel.org> # v3.5
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/at91_udc.c