]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
usb: gadget: printer: remove unused and empty printer_unbind
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Tue, 3 Mar 2015 09:52:06 +0000 (10:52 +0100)
committerFelipe Balbi <balbi@ti.com>
Tue, 10 Mar 2015 20:33:34 +0000 (15:33 -0500)
The unbind() method is optional is usb_composite_driver.
In this particular driver the method does nothing so it can be removed.

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

index 6385c198c1348ee0455e8d6ebdc78b1aba34d0d1..21ea317d2a43fa567a4338542e4fa8f119aac702 100644 (file)
@@ -1288,11 +1288,6 @@ fail:
        return status;
 }
 
-static int printer_unbind(struct usb_composite_dev *cdev)
-{
-       return 0;
-}
-
 static int __init printer_bind(struct usb_composite_dev *cdev)
 {
        int ret;
@@ -1317,7 +1312,6 @@ static __refdata struct usb_composite_driver printer_driver = {
        .strings        = dev_strings,
        .max_speed      = USB_SPEED_SUPER,
        .bind           = printer_bind,
-       .unbind         = printer_unbind,
 };
 
 static int __init