Skip to content
Commit f78fb257 authored by Yao Zi's avatar Yao Zi Committed by Huacai Chen
Browse files

platform/loongarch: laptop: Unregister generic_sub_drivers on exit



Without correct unregisteration, ACPI notify handlers and the platform
drivers installed by generic_subdriver_init() will become dangling
references after removing the loongson_laptop module, triggering various
kernel faults when a hotkey is sent or at kernel shutdown.

Cc: stable@vger.kernel.org
Fixes: 6246ed09 ("LoongArch: Add ACPI-based generic laptop driver")
Signed-off-by: default avatarYao Zi <ziyao@disroot.org>
Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
parent 53c762b4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment