You've already forked linux-t2-patches
mirror of
https://github.com/t2linux/linux-t2-patches.git
synced 2026-04-30 13:52:11 -07:00
36 lines
988 B
Diff
36 lines
988 B
Diff
From 4d444d98c6f5f7f39540386b97aa8d77102ada74 Mon Sep 17 00:00:00 2001
|
|
From: Orlando Chamberlain <orlandoch.dev@gmail.com>
|
|
Date: Tue, 24 Jan 2023 15:46:48 +1100
|
|
Subject: [PATCH 8/9] applesmc: make applesmc_remove void
|
|
|
|
for linux6.2 compatibility
|
|
---
|
|
drivers/hwmon/applesmc.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/drivers/hwmon/applesmc.c b/drivers/hwmon/applesmc.c
|
|
index 8c7b2e2cd..5f67d7362 100644
|
|
--- a/drivers/hwmon/applesmc.c
|
|
+++ b/drivers/hwmon/applesmc.c
|
|
@@ -979,7 +979,7 @@ static int applesmc_add(struct acpi_device *dev)
|
|
return ret;
|
|
}
|
|
|
|
-static int applesmc_remove(struct acpi_device *dev)
|
|
+static void applesmc_remove(struct acpi_device *dev)
|
|
{
|
|
struct applesmc_device *smc = dev_get_drvdata(&dev->dev);
|
|
|
|
@@ -990,7 +990,7 @@ static int applesmc_remove(struct acpi_device *dev)
|
|
mutex_destroy(&smc->reg.mutex);
|
|
kfree(smc);
|
|
|
|
- return 0;
|
|
+ return;
|
|
}
|
|
|
|
static acpi_status applesmc_walk_resources(struct acpi_resource *res,
|
|
--
|
|
2.45.2
|
|
|