netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] hso: remove claiming and releasing of USB interface
@ 2009-02-23 15:39 Paulius Zaleckas
  2009-02-27  7:05 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Paulius Zaleckas @ 2009-02-23 15:39 UTC (permalink / raw)
  To: netdev, linux-usb; +Cc: D.Barow

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>
---

 drivers/net/usb/hso.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)


diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c
index fe98aca..a6bf488 100644
--- a/drivers/net/usb/hso.c
+++ b/drivers/net/usb/hso.c
@@ -2979,8 +2979,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);
 
@@ -2998,8 +2996,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)


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] hso: remove claiming and releasing of USB interface
  2009-02-23 15:39 [PATCH] hso: remove claiming and releasing of USB interface Paulius Zaleckas
@ 2009-02-27  7:05 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2009-02-27  7:05 UTC (permalink / raw)
  To: paulius.zaleckas; +Cc: netdev, linux-usb, D.Barow

From: Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
Date: Mon, 23 Feb 2009 17:39:34 +0200

> 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>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-02-27  7:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-23 15:39 [PATCH] hso: remove claiming and releasing of USB interface Paulius Zaleckas
2009-02-27  7:05 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).