projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a145818
)
ACPI: Use resource_size() in osl.c
author
Alexandru Gheorghiu
<gheorghiuandru@gmail.com>
Tue, 12 Mar 2013 08:53:02 +0000
(08:53 +0000)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Sun, 24 Mar 2013 23:15:37 +0000
(
00:15
+0100)
Use the resource_size() function instead of explicit computation.
[rjw: Subject and changelog]
Signed-off-by: Alexandru Gheorghiu <gheorghiuandru@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/osl.c
patch
|
blob
|
history
diff --git
a/drivers/acpi/osl.c
b/drivers/acpi/osl.c
index 586e7e993d3d01365dfdf9ec21c157e1df4bb490..4d31748faca3d9f05014a4c662d76e11abc6bd7a 100644
(file)
--- 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 = res
ource_size(res)
;
if (acpi_enforce_resources != ENFORCE_RESOURCES_NO)
warn = 1;
clash = acpi_check_address_range(space_id, res->start, length, warn);