]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
platform/x86: system76: Drop redundant devm_led_classdev_unregister()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 18 Mar 2026 13:50:08 +0000 (14:50 +0100)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 23 Mar 2026 09:37:15 +0000 (11:37 +0200)
Drop two redundant devm_led_classdev_unregister() calls from
system76_remove().

No intentional functional impact.

Suggested-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/5057164.GXAFRqVoOG@rafael.j.wysocki
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/system76_acpi.c

index 3da753b3d00db1e8b5d67f63e748c258c15aa189..d8b64e2c27136f52698cbeb1e205d53c918d2274 100644 (file)
@@ -800,9 +800,6 @@ static void system76_remove(struct acpi_device *acpi_dev)
                kfree(data->ntmp);
        }
 
-       devm_led_classdev_unregister(&acpi_dev->dev, &data->ap_led);
-       devm_led_classdev_unregister(&acpi_dev->dev, &data->kb_led);
-
        system76_get(data, "FINI");
 }