From: Rafael J. Wysocki Date: Sat, 10 Jan 2026 11:50:54 +0000 (+0100) Subject: ACPI: scan: Clean up after recent changes X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b862e66a9c2e3e1b55d2192b0dc8f80535e11eee;p=thirdparty%2Flinux.git ACPI: scan: Clean up after recent changes Use LIST_HEAD() for initializing an on-stack list head in two places and remove an empty code line added by mistake. No intentional functional impact. Signed-off-by: Rafael J. Wysocki Reviewed-by: Mario Limonciello (AMD) Link: https://patch.msgid.link/12825056.O9o76ZdvQC@rafael.j.wysocki --- diff --git a/drivers/acpi/acpi_platform.c b/drivers/acpi/acpi_platform.c index 377ca83241214..0ec1afc744f52 100644 --- a/drivers/acpi/acpi_platform.c +++ b/drivers/acpi/acpi_platform.c @@ -136,7 +136,7 @@ struct platform_device *acpi_create_platform_device(struct acpi_device *adev, } if (adev->device_type == ACPI_BUS_TYPE_DEVICE && !adev->pnp.type.backlight) { - struct list_head resource_list = LIST_HEAD_INIT(resource_list); + LIST_HEAD(resource_list); count = acpi_dev_get_resources(adev, &resource_list, NULL, NULL); if (count < 0) diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index b4301c797701b..582ccf4596ffe 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c @@ -2594,8 +2594,8 @@ static void acpi_scan_postponed(void) static void acpi_scan_claim_resources(struct acpi_device *adev) { - struct list_head resource_list = LIST_HEAD_INIT(resource_list); struct resource_entry *rentry; + LIST_HEAD(resource_list); unsigned int count = 0; const char *regionid; @@ -2652,7 +2652,6 @@ exit: acpi_dev_free_resource_list(&resource_list); } - static int __init acpi_reserve_motherboard_resources(void) { struct acpi_scan_system_dev *sd, *tmp;