usb: gadget: f_ncm: obtain cdev from function instead of driver_data
authorRobert Baldyga <r.baldyga@samsung.com>
Wed, 16 Sep 2015 10:10:40 +0000 (12:10 +0200)
committerFelipe Balbi <balbi@ti.com>
Sun, 27 Sep 2015 15:54:31 +0000 (10:54 -0500)
commit35bfde36872607b1de87288f9798af79820a910f
tree174ca2395ed0c683e47fe3f89653347733de2efe
parentf871cb9b2e178667a351a6fae9d930826ec10e95
usb: gadget: f_ncm: obtain cdev from function instead of driver_data

The 'driver_data' field in ep0 is never set to pointer to cdev, so we
have to obtain it from another source as in this context ep->driver_data
contains invalid data.

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/function/f_ncm.c