Skip to content

Commit ff8f624

Browse files
committed
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
1 parent eed8f21 commit ff8f624

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/acpi/scan.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2623,7 +2623,7 @@ static void acpi_scan_claim_resources(struct acpi_device *adev)
26232623
if ((res->flags & IORESOURCE_DISABLED) || res->end < res->start)
26242624
continue;
26252625

2626-
if (res->flags & IORESOURCE_IO) {
2626+
if (resource_type(res) == IORESOURCE_IO) {
26272627
/*
26282628
* Follow the PNP system driver and on x86 skip I/O
26292629
* resources that start below 0x100 (the "standard PC
@@ -2634,7 +2634,7 @@ static void acpi_scan_claim_resources(struct acpi_device *adev)
26342634
continue;
26352635
}
26362636
r = request_region(res->start, resource_size(res), regionid);
2637-
} else if (res->flags & IORESOURCE_MEM) {
2637+
} else if (resource_type(res) == IORESOURCE_MEM) {
26382638
r = request_mem_region(res->start, resource_size(res), regionid);
26392639
} else {
26402640
continue;

0 commit comments

Comments
 (0)