mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
staging: r8188eu: switch the led off during deinit
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: 15865124fe ("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0dbd880cb5
commit
9d36de3113
@@ -41,6 +41,7 @@ void DeInitLed871x(struct LED_871x *pLed)
|
||||
{
|
||||
cancel_delayed_work_sync(&pLed->blink_work);
|
||||
ResetLedStatus(pLed);
|
||||
SwLedOff(pLed->padapter, pLed);
|
||||
}
|
||||
|
||||
static void SwLedBlink1(struct LED_871x *pLed)
|
||||
|
||||
Reference in New Issue
Block a user