rt2x00: fix rmmod crash
authorStanislaw Gruszka <stf_xl@wp.pl>
Sat, 4 Jun 2011 14:48:54 +0000 (16:48 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 6 Jun 2011 19:24:18 +0000 (15:24 -0400)
commit3bb42a64960253353278876ca8da6b0a7d3bea87
tree5d36b19f338c3ce042e61062c6d13659ad44b3cf
parent42b70a5f6d18165a075d189d1bee82fad7cdbf29
rt2x00: fix rmmod crash

Avoid queue and run autowakeup_work when device is not present anymore.
That prevent rmmod and device remove crash introduced by:

commit 1c0bcf89d85cc97a0d9ce4cd909351a81fa4fdde
Author: Ivo van Doorn <ivdoorn@gmail.com>
Date:   Sat Apr 30 17:18:18 2011 +0200

    rt2x00: Add autowake support for USB hardware

Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00config.c
drivers/net/wireless/rt2x00/rt2x00dev.c