mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-22 04:03:58 +08: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