]> err.no Git - linux-2.6/commit
libertas: reset devices upon disconnect rather than module unloading
authorAndres Salomon <dilinger@debian.org>
Tue, 20 Nov 2007 22:43:55 +0000 (17:43 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:04:51 +0000 (15:04 -0800)
commitbe13f1897f76a4b395c3d572a18b2802fd521946
tree377723a5010c45f56099f44f91b9ed798c893a76
parent4fb910fd3ada36cd9fbf6e037b87f2a83fd740b7
libertas: reset devices upon disconnect rather than module unloading

1) Do not reset libertas devices upon module unload.  We're unloading
the module, we're not killing off devices.
2) Instead, reset libertas devices inside if_usb_disconnect, as we're
killing off interfaces and so on.
3) Resetting via disconnect callback means we no longer need to keep
track of probed libertas devices; kill off that list (and its wonderful
lack of locking..), as well.

Drop a useless comment as well.

Signed-off-by: Andres Salomon <dilinger@debian.org>
Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/if_usb.c
drivers/net/wireless/libertas/if_usb.h