1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/platform/x86/amd/pmf
Mario Limonciello 4dbd6e61ad platform/x86/amd/pmf: Fix a missing cleanup path
On systems that support slider notifications but don't otherwise support
granular slider the SPS cleanup path doesn't run.

This means that loading/unloading/loading leads to failures because
the sysfs files don't get setup properly when reloaded.

Add the missing cleanup path.

Fixes: 33c9ab5b49 ("platform/x86/amd/pmf: Notify OS power slider update")
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20230823185421.23959-1-mario.limonciello@amd.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2023-08-26 12:25:56 +02:00
..
acpi.c platform/x86/amd/pmf: Notify OS power slider update 2023-07-25 14:31:25 +02:00
auto-mode.c platform/x86/amd/pmf: Add PMF debug facilities 2023-05-15 15:18:03 +02:00
cnqf.c platform/x86/amd/pmf: Use str_on_off() helper 2023-08-21 15:20:28 +02:00
core.c platform/x86/amd/pmf: Fix a missing cleanup path 2023-08-26 12:25:56 +02:00
Kconfig platform/x86/amd/pmf: Add PMF acpi debug support 2023-05-15 15:17:31 +02:00
Makefile platform/x86/amd/pmf: Add support for CnQF 2022-09-22 17:42:53 +02:00
pmf.h platform/x86/amd/pmf: Notify OS power slider update 2023-07-25 14:31:25 +02:00
sps.c platform/x86/amd/pmf: Fix unsigned comparison with less than zero 2023-07-31 16:01:58 +02:00