diff options
author | Paulius Zaleckas <paulius.zaleckas@teltonika.lt> | 2009-02-23 00:39:34 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-27 02:02:56 -0500 |
commit | a6f26e4b0e1d63f466df7ae0fa35398316cf2dfc (patch) | |
tree | 7f8ead59474b1d35055f7d328dabf4ce2bfca555 /drivers/net/usb/hso.c | |
parent | 6ceffd477808b806d0510747a77fca0a1a60a5b2 (diff) |
hso: remove claiming and releasing of USB interface
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>
Diffstat (limited to 'drivers/net/usb/hso.c')
-rw-r--r-- | 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 a074c16e2a62..0548edffd7cd 100644 --- a/drivers/net/usb/hso.c +++ b/drivers/net/usb/hso.c | |||
@@ -2978,8 +2978,6 @@ static int hso_probe(struct usb_interface *interface, | |||
2978 | goto exit; | 2978 | goto exit; |
2979 | } | 2979 | } |
2980 | 2980 | ||
2981 | usb_driver_claim_interface(&hso_driver, interface, hso_dev); | ||
2982 | |||
2983 | /* save our data pointer in this device */ | 2981 | /* save our data pointer in this device */ |
2984 | usb_set_intfdata(interface, hso_dev); | 2982 | usb_set_intfdata(interface, hso_dev); |
2985 | 2983 | ||
@@ -2997,8 +2995,6 @@ static void hso_disconnect(struct usb_interface *interface) | |||
2997 | 2995 | ||
2998 | /* remove reference of our private data */ | 2996 | /* remove reference of our private data */ |
2999 | usb_set_intfdata(interface, NULL); | 2997 | usb_set_intfdata(interface, NULL); |
3000 | |||
3001 | usb_driver_release_interface(&hso_driver, interface); | ||
3002 | } | 2998 | } |
3003 | 2999 | ||
3004 | static void async_get_intf(struct work_struct *data) | 3000 | static void async_get_intf(struct work_struct *data) |