mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
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>
This commit is contained in:
parent
4ac7a817f1
commit
01c3d593be
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user