hso: remove claiming and releasing of USB interface
authorPaulius Zaleckas <paulius.zaleckas@teltonika.lt>
Mon, 23 Feb 2009 05:39:34 +0000 (05:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Feb 2009 07:02:56 +0000 (23:02 -0800)
No need to reclaim the same USB interface beeing probed.
Releasing interface does nothing also.

This is already in for a long time in off-kernel hso driver
and no regresions were noticed for this change.

Signed-off-by: Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
Cc: Denis Joseph Barrow <D.Barow@option.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/hso.c

index a074c16e2a62c0ca2f6f87da709cfb158d74dc9c..0548edffd7cd5e21ba7083d21c33217f45f1e286 100644 (file)
@@ -2978,8 +2978,6 @@ static int hso_probe(struct usb_interface *interface,
                goto exit;
        }
 
-       usb_driver_claim_interface(&hso_driver, interface, hso_dev);
-
        /* save our data pointer in this device */
        usb_set_intfdata(interface, hso_dev);
 
@@ -2997,8 +2995,6 @@ static void hso_disconnect(struct usb_interface *interface)
 
        /* remove reference of our private data */
        usb_set_intfdata(interface, NULL);
-
-       usb_driver_release_interface(&hso_driver, interface);
 }
 
 static void async_get_intf(struct work_struct *data)