Skip to content

Commit 79630ed

Browse files
Redecorating1Naim
authored andcommitted
applesmc-t2: make applesmc_remove void
for linux6.2 compatibility
1 parent 920c85e commit 79630ed

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/hwmon/applesmc-t2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ static int applesmc_add(struct acpi_device *dev)
979979
return ret;
980980
}
981981

982-
static int applesmc_remove(struct acpi_device *dev)
982+
static void applesmc_remove(struct acpi_device *dev)
983983
{
984984
struct applesmc_device *smc = dev_get_drvdata(&dev->dev);
985985

@@ -990,7 +990,7 @@ static int applesmc_remove(struct acpi_device *dev)
990990
mutex_destroy(&smc->reg.mutex);
991991
kfree(smc);
992992

993-
return 0;
993+
return;
994994
}
995995

996996
static acpi_status applesmc_walk_resources(struct acpi_resource *res,

0 commit comments

Comments
 (0)