Skip to content

Commit 01c3d59

Browse files
Zhen Leirafaeljw
authored andcommitted
ACPI: OSL: Use DEFINE_RES_IO_NAMED() to simplify code
No functional change. Signed-off-by: Zhen Lei <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 4ac7a81 commit 01c3d59

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/acpi/osl.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1487,12 +1487,7 @@ EXPORT_SYMBOL(acpi_check_resource_conflict);
14871487
int acpi_check_region(resource_size_t start, resource_size_t n,
14881488
const char *name)
14891489
{
1490-
struct resource res = {
1491-
.start = start,
1492-
.end = start + n - 1,
1493-
.name = name,
1494-
.flags = IORESOURCE_IO,
1495-
};
1490+
struct resource res = DEFINE_RES_IO_NAMED(start, n, name);
14961491

14971492
return acpi_check_resource_conflict(&res);
14981493
}

0 commit comments

Comments
 (0)