From d17c976c7c57eb2fd4f854606e07b1bd4eac079f Mon Sep 17 00:00:00 2001 From: JonnyTech <3584732+JonnyTech@users.noreply.github.com> Date: Sat, 28 Dec 2024 15:30:04 +0000 Subject: [PATCH] Fix for kernel 6.11 and newer As described in https://github.com/pelrun/hp-omen-linux-module/issues/28 --- src/hp-wmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hp-wmi.c b/src/hp-wmi.c index b81651a..b34689d 100644 --- a/src/hp-wmi.c +++ b/src/hp-wmi.c @@ -1173,7 +1173,7 @@ static int __init hp_wmi_bios_setup(struct platform_device *device) return err; } -static int __exit hp_wmi_bios_remove(struct platform_device *device) +static void __exit hp_wmi_bios_remove(struct platform_device *device) { int i; cleanup_sysfs(device); @@ -1196,7 +1196,7 @@ static int __exit hp_wmi_bios_remove(struct platform_device *device) rfkill_destroy(wwan_rfkill); } - return 0; + // return 0; } static int hp_wmi_resume_handler(struct device *device)