libertas: stop attempting to reset devices on unload
authorDavid Woodhouse <dwmw2@infradead.org>
Fri, 14 Dec 2007 02:53:16 +0000 (21:53 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:07:26 +0000 (15:07 -0800)
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>
drivers/net/wireless/libertas/if_usb.c

index 81914165259928330d4fc04979171ede114b60f8..25925bd761d8b4b586a8b765749653589bd0f2c2 100644 (file)
@@ -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);