From: Alexandru Gheorghiu Date: Tue, 12 Mar 2013 08:53:02 +0000 (+0000) Subject: ACPI: Use resource_size() in osl.c X-Git-Tag: pm+acpi-3.10-rc1~6^2~12 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=e4f5224464739a89e6a6c9169211ef4f76165056;p=uclinux-h8%2Flinux.git ACPI: Use resource_size() in osl.c Use the resource_size() function instead of explicit computation. [rjw: Subject and changelog] Signed-off-by: Alexandru Gheorghiu Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 586e7e993d3d..4d31748faca3 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c @@ -1555,7 +1555,7 @@ int acpi_check_resource_conflict(const struct resource *res) else space_id = ACPI_ADR_SPACE_SYSTEM_MEMORY; - length = res->end - res->start + 1; + length = resource_size(res); if (acpi_enforce_resources != ENFORCE_RESOURCES_NO) warn = 1; clash = acpi_check_address_range(space_id, res->start, length, warn);