usb: gadget: printer: don't access file global usb_printer_gadget in function's code
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Tue, 3 Mar 2015 09:52:21 +0000 (10:52 +0100)
committerFelipe Balbi <balbi@ti.com>
Tue, 10 Mar 2015 20:33:38 +0000 (15:33 -0500)
commit8fe20f661f3cfbb6778368eb3c73f8a6438ac640
tree04145287a3a420d4dc84e70cf71b658f297e7ac6
parentdec81cf1dcaac5b91de7cd32c96aadcb94840c7f
usb: gadget: printer: don't access file global usb_printer_gadget in function's code

The printer_dev can be recovered from printer_func_unbind() function's
parameters.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/legacy/printer.c