]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: udc-core: fix bug on soft_connect interface
authorFelipe Balbi <balbi@ti.com>
Thu, 8 Sep 2011 11:12:18 +0000 (14:12 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Sep 2011 22:36:07 +0000 (15:36 -0700)
commit33b0075a87d9a0a447620a454396a2962911241a
treeb9f125ca3c3c6f3db2b131d65f58d026d5095b77
parent3e76793a557529ac8a2bdf5fb426ff061df45137
usb: gadget: udc-core: fix bug on soft_connect interface

We should not be using dev_get_drvdata() because we
never call dev_set_drvdata(). Let's use container_of()
as all other sysfs attributes.

Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/udc-core.c