staging: r8188eu: switch the led off during deinit
authorMartin Kaiser <martin@kaiser.cx>
Sun, 26 Dec 2021 19:55:36 +0000 (20:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jan 2022 08:12:41 +0000 (09:12 +0100)
commitf39ffc6f9c605d812a68b683c126b6b443d28171
tree50d1ff6f39100190d0587a391d4b781e1a42d392
parentcf5b6bd2c79269c7774105f81fcae460063a6199
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>
drivers/staging/r8188eu/core/rtw_led.c