From: Rafael J. Wysocki Date: Wed, 18 Mar 2026 13:50:08 +0000 (+0100) Subject: platform/x86: system76: Drop redundant devm_led_classdev_unregister() X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5539165cae8e133275f0eed4cfa131cda974a1a3;p=thirdparty%2Fkernel%2Flinux.git platform/x86: system76: Drop redundant devm_led_classdev_unregister() Drop two redundant devm_led_classdev_unregister() calls from system76_remove(). No intentional functional impact. Suggested-by: Ilpo Järvinen Signed-off-by: Rafael J. Wysocki Link: https://patch.msgid.link/5057164.GXAFRqVoOG@rafael.j.wysocki Reviewed-by: Ilpo Järvinen Signed-off-by: Ilpo Järvinen --- diff --git a/drivers/platform/x86/system76_acpi.c b/drivers/platform/x86/system76_acpi.c index 3da753b3d00d..d8b64e2c2713 100644 --- a/drivers/platform/x86/system76_acpi.c +++ b/drivers/platform/x86/system76_acpi.c @@ -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"); }