diff options
| author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2025-12-30 10:57:34 +0100 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-01-02 13:09:59 +0100 |
| commit | ff8f624860e1cd31f32d2c18de291ca727f8ddcd (patch) | |
| tree | ef1f54c8171caece969cfd22b50528d71a9a2ef1 /drivers/acpi | |
| parent | eed8f21a94f86e1b25d945fabbd50f822781e41d (diff) | |
ACPI: scan: Use resource_type() for resource type checking
To follow a well-established existing pattern, use resource_type() for
resource type checking in acpi_scan_claim_resources().
No intentional functional impact.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Link: https://patch.msgid.link/12814730.O9o76ZdvQC@rafael.j.wysocki
Diffstat (limited to 'drivers/acpi')
| -rw-r--r-- | drivers/acpi/scan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 8a895d377e21..e9b09a3040f0 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c @@ -2623,7 +2623,7 @@ static void acpi_scan_claim_resources(struct acpi_device *adev) if ((res->flags & IORESOURCE_DISABLED) || res->end < res->start) continue; - if (res->flags & IORESOURCE_IO) { + if (resource_type(res) == IORESOURCE_IO) { /* * Follow the PNP system driver and on x86 skip I/O * resources that start below 0x100 (the "standard PC @@ -2634,7 +2634,7 @@ static void acpi_scan_claim_resources(struct acpi_device *adev) continue; } r = request_region(res->start, resource_size(res), regionid); - } else if (res->flags & IORESOURCE_MEM) { + } else if (resource_type(res) == IORESOURCE_MEM) { r = request_mem_region(res->start, resource_size(res), regionid); } else { continue; |
