With multiple (and dynamically allocated and removed) instances of the printer function it does not make sense to depend on a component of a particular struct printer_dev in order to clean up after _all_ printer instances. Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@xxxxxxxxxxx> --- drivers/usb/gadget/function/f_printer.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/gadget/function/f_printer.c b/drivers/usb/gadget/function/f_printer.c index 170f9b1..0847972 100644 --- a/drivers/usb/gadget/function/f_printer.c +++ b/drivers/usb/gadget/function/f_printer.c @@ -1268,7 +1268,6 @@ static int gprinter_setup(int count) return status; } -/* must be called with struct printer_dev's lock_printer_io held */ static void gprinter_cleanup(void) { if (major) { -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html