platform/x86: thinkpad_acpi: Take mutex in hotkey_resume
authorDennis Bonke <admin@dennisbonke.com>
Thu, 14 Sep 2023 13:03:56 +0000 (15:03 +0200)
committerHans de Goede <hdegoede@redhat.com>
Mon, 18 Sep 2023 13:16:19 +0000 (15:16 +0200)
commit81bf4a4e9cb754e957ab614cde6a3b16244d670b
tree52c6bfbbfed825a149d275771c8ea76d44319332
parent85e654c9f722853a595fa941dca60c157b707b86
platform/x86: thinkpad_acpi: Take mutex in hotkey_resume

hotkey_status_set expects the hotkey_mutex to be held.
It seems like it was missed here and that gives lockdep
warnings while resuming.

Fixes: 38831eaf7d4c ("platform/x86: thinkpad_acpi: use lockdep annotations")
Reviewed-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Dennis Bonke <admin@dennisbonke.com>
Link: https://lore.kernel.org/r/20230914130356.235912-1-admin@dennisbonke.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/thinkpad_acpi.c