Skip to content

Commit

Permalink
ACPI: OSL: Use DEFINE_RES_IO_NAMED() to simplify code
Browse files Browse the repository at this point in the history
No functional change.

Signed-off-by: Zhen Lei <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
  • Loading branch information
Zhen Lei authored and rafaeljw committed Jun 7, 2021
1 parent 4ac7a81 commit 01c3d59
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions drivers/acpi/osl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1487,12 +1487,7 @@ EXPORT_SYMBOL(acpi_check_resource_conflict);
int acpi_check_region(resource_size_t start, resource_size_t n,
const char *name)
{
struct resource res = {
.start = start,
.end = start + n - 1,
.name = name,
.flags = IORESOURCE_IO,
};
struct resource res = DEFINE_RES_IO_NAMED(start, n, name);

return acpi_check_resource_conflict(&res);
}
Expand Down

0 comments on commit 01c3d59

Please sign in to comment.