rtl8xxxu: Reset device on module unload if still attached
authorJes Sorensen <Jes.Sorensen@redhat.com>
Fri, 9 Sep 2016 18:01:24 +0000 (14:01 -0400)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 14 Sep 2016 17:01:08 +0000 (20:01 +0300)
commit54cdf5c727cb3d3124e61433a13e9724a7a4a952
tree71851557aa64c3a335669173c6ef1ea9eeb54c98
parentae1799a1cb130170c3ba3370793cea5b0d9d2aa8
rtl8xxxu: Reset device on module unload if still attached

If the USB dongle is still attached, reset it on module unload to
avoid scans failing when reloading the driver.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c