]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Oct 2012 17:39:09 +0000 (10:39 -0700)
commitbdee0b397af9199d78bbbb1d3d3fd20140b8777e
treecf3022bd3ffb57e86ad0b5ed1f506474bff43c93
parent0fd97e46e63c94bb532922850f381ced90c77e71
usb: gadget: at91udc: don't overwrite driver data

commit 8b7dda554cf61e87523dee412eaf598f8646bd79 upstream.

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>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/at91_udc.c