mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 12:14:06 +00:00
ACPI: resource: Filter out the non memory resources in is_memory()
This will generalise the function so it should become useful in more places. Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
7e18e42e4b
commit
6d2b5a1cf4
1 changed files with 3 additions and 0 deletions
|
@ -690,6 +690,9 @@ static int is_memory(struct acpi_resource *ares, void *not_used)
|
|||
|
||||
memset(&win, 0, sizeof(win));
|
||||
|
||||
if (acpi_dev_filter_resource_type(ares, IORESOURCE_MEM))
|
||||
return 1;
|
||||
|
||||
return !(acpi_dev_resource_memory(ares, res)
|
||||
|| acpi_dev_resource_address_space(ares, &win)
|
||||
|| acpi_dev_resource_ext_address_space(ares, &win));
|
||||
|
|
Loading…
Add table
Reference in a new issue