diff options
author | Zhen Lei <thunder.leizhen@huawei.com> | 2021-06-01 08:50:32 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2021-06-07 15:49:03 +0200 |
commit | 01c3d593be8d3e45fce3644011c60b0645cbdd78 (patch) | |
tree | 77804cf0ef98a13eb816c717547e55f4f18909db /drivers/acpi/osl.c | |
parent | ACPI: bus: Call kobject_put() in acpi_init() error path (diff) | |
download | linux-01c3d593be8d3e45fce3644011c60b0645cbdd78.tar.xz linux-01c3d593be8d3e45fce3644011c60b0645cbdd78.zip |
ACPI: OSL: Use DEFINE_RES_IO_NAMED() to simplify code
No functional change.
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/osl.c')
-rw-r--r-- | drivers/acpi/osl.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 327e1b4eb6b0..f40d34776a35 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c @@ -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); } |