Message ID | 20210601065032.10042-1-thunder.leizhen@huawei.com |
---|---|
State | Accepted |
Commit | 01c3d593be8d3e45fce3644011c60b0645cbdd78 |
Headers | show |
Series | [1/1] ACPI: OSL: Use DEFINE_RES_IO_NAMED() to simplify code | expand |
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 327e1b4eb6b096f..f40d34776a3528c 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); }
No functional change. Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com> --- drivers/acpi/osl.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) -- 2.26.0.106.g9fadedd