usb: gadget: udc-core: fix bug on soft_connect and srp interfaces
authorFelipe Balbi <balbi@ti.com>
Thu, 8 Sep 2011 11:11:17 +0000 (14:11 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Nov 2011 19:51:15 +0000 (11:51 -0800)
commit1d91a96268a0b2d7301c3ee67a784b712f34010f
treeff1145bcd024778d9497c650ebc4c60cf2683873
parent47c6a04bf58163fe2a429617ae6b1a93ba363723
usb: gadget: udc-core: fix bug on soft_connect and srp interfaces

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