summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kaiser <martin@kaiser.cx>2021-12-26 20:55:36 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-01-16 09:12:41 +0100
commitf39ffc6f9c605d812a68b683c126b6b443d28171 (patch)
tree50d1ff6f39100190d0587a391d4b781e1a42d392
parentcf5b6bd2c79269c7774105f81fcae460063a6199 (diff)
downloadlinux-f39ffc6f9c605d812a68b683c126b6b443d28171.tar.gz
linux-f39ffc6f9c605d812a68b683c126b6b443d28171.tar.bz2
linux-f39ffc6f9c605d812a68b683c126b6b443d28171.zip
staging: r8188eu: switch the led off during deinit
commit 9d36de31130542fc060f7cd17e72db670202c682 upstream. When the driver is unloaded or when the system goes into standby mode, DeInitLed871x is called to stop the led layer. In this case, we stop the blinking worker but we do not switch the led off explicitly. On my system, I can go into standby mode with the LED enabled. Add a call to SwLedOff to fix this. Fixes: 15865124feed ("staging: r8188eu: introduce new core dir for RTL8188eu driver") Cc: stable@vger.kernel.org Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20211226195556.159471-2-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/r8188eu/core/rtw_led.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/r8188eu/core/rtw_led.c b/drivers/staging/r8188eu/core/rtw_led.c
index b33e34cce12e..f9a8cdd9a168 100644
--- a/drivers/staging/r8188eu/core/rtw_led.c
+++ b/drivers/staging/r8188eu/core/rtw_led.c
@@ -74,6 +74,7 @@ void DeInitLed871x(struct LED_871x *pLed)
_cancel_workitem_sync(&pLed->BlinkWorkItem);
_cancel_timer_ex(&pLed->BlinkTimer);
ResetLedStatus(pLed);
+ SwLedOff(pLed->padapter, pLed);
}
/* */