[PATCH v2 1/3] platform/x86: system76: Drop redundant devm_led_classdev_unregister()

Rafael J. Wysocki posted 1 patch 2 weeks, 5 days ago
drivers/platform/x86/system76_acpi.c | 3 ---
1 file changed, 3 deletions(-)
[PATCH v2 1/3] platform/x86: system76: Drop redundant devm_led_classdev_unregister()
Posted by Rafael J. Wysocki 2 weeks, 5 days ago
From: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com>

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>
---

v1 -> v2: New patch

---
 drivers/platform/x86/system76_acpi.c | 3 ---
 1 file changed, 3 deletions(-)

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");
 }
 
-- 
2.51.0