[PATCH 2/2] ata: ahci_seattle: drop unused acpi_device_id::driver_data
Pawel Zalewski via B4 Relay <[email protected]> Mon, 03 Aug 2026 16:03:51 +0100
| Newsgroups | gmane.linux.ide,gmane.linux.kernel |
|---|---|
| Message-ID | <[email protected]> |
From: "Pawel Zalewski (The Capable Hub)" <[email protected]> This module sets the acpi_device_id::driver_data to 0 but the id is not actually used within the module, we can just drop it from the list. While we are at it - used a named initializer for the acpi_device_id::id field to increase readability and modify the list terminator to have a single space in between the brackets. Signed-off-by: Pawel Zalewski (The Capable Hub) <[email protected]> --- drivers/ata/ahci_seattle.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/ata/ahci_seattle.c b/drivers/ata/ahci_seattle.c index 3f16c1678402..9758fa0260ac 100644 --- a/drivers/ata/ahci_seattle.c +++ b/drivers/ata/ahci_seattle.c @@ -178,8 +178,8 @@ static SIMPLE_DEV_PM_OPS(ahci_pm_ops, ahci_platform_suspend, ahci_platform_resume); static const struct acpi_device_id ahci_acpi_match[] = { - { "AMDI0600", 0 }, - {} + { .id = "AMDI0600" }, + { } }; MODULE_DEVICE_TABLE(acpi, ahci_acpi_match); -- 2.54.0