Skip to content

Commit

Permalink
libertas: stop attempting to reset devices on unload
Browse files Browse the repository at this point in the history
It wasn't working anyway -- by the time we get into if_usb_disconnect()
the USB core has already stopped us talking to the thing; even if it's
just on unload and the device still exists.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
David Woodhouse authored and David S. Miller committed Jan 28, 2008
1 parent d9f8870 commit b926d6b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/net/wireless/libertas/if_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,16 +278,11 @@ static void if_usb_disconnect(struct usb_interface *intf)
cardp->surprise_removed = 1;

if (priv) {

priv->surpriseremoved = 1;
lbs_stop_card(priv);
lbs_remove_card(priv);
}

/* this is (apparently?) necessary for future usage of the device */
lbs_prepare_and_send_command(priv, CMD_802_11_RESET, CMD_ACT_HALT,
0, 0, NULL);

/* Unlink and free urb */
if_usb_free(cardp);

Expand Down

0 comments on commit b926d6b

Please sign in to comment.