Commit e814f6de authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Rafael J. Wysocki
Browse files

ACPI: Let the parser return false for disabled resources



If the parser disables a resource during parsing, let it return false,
so the calling code does not need to implement further checks.

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarJiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 1d0420f1
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -219,10 +219,10 @@ bool acpi_dev_resource_address_space(struct acpi_resource *ares,
		res->flags = IORESOURCE_BUS;
		break;
	default:
		res->flags = 0;
		return false;
	}

	return true;
	return !(res->flags & IORESOURCE_DISABLED);
}
EXPORT_SYMBOL_GPL(acpi_dev_resource_address_space);

@@ -268,10 +268,10 @@ bool acpi_dev_resource_ext_address_space(struct acpi_resource *ares,
		res->flags = IORESOURCE_BUS;
		break;
	default:
		res->flags = 0;
		return false;
	}

	return true;
	return !(res->flags & IORESOURCE_DISABLED);
}
EXPORT_SYMBOL_GPL(acpi_dev_resource_ext_address_space);