diff options
| author | Jean Delvare <khali@linux-fr.org> | 2009-11-11 09:22:15 -0500 |
|---|---|---|
| committer | Len Brown <len.brown@intel.com> | 2009-12-09 14:44:42 -0500 |
| commit | 876fba43cc810e3c37ce26995933f9547b83cb0e (patch) | |
| tree | ad61e29807e607b02e4ff7c68ac53e4005828419 /drivers/acpi/osl.c | |
| parent | 22763c5cf3690a681551162c15d34d935308c8d7 (diff) | |
ACPI: add const to acpi_check_resource_conflict()
acpi_check_resource_conflict() doesn't change the resource
it operates on, so the res parameter can be marked const.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/osl.c')
| -rw-r--r-- | drivers/acpi/osl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 7c1c59ea9ec6..02e8464e480f 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c | |||
| @@ -1118,7 +1118,7 @@ __setup("acpi_enforce_resources=", acpi_enforce_resources_setup); | |||
| 1118 | 1118 | ||
| 1119 | /* Check for resource conflicts between ACPI OperationRegions and native | 1119 | /* Check for resource conflicts between ACPI OperationRegions and native |
| 1120 | * drivers */ | 1120 | * drivers */ |
| 1121 | int acpi_check_resource_conflict(struct resource *res) | 1121 | int acpi_check_resource_conflict(const struct resource *res) |
| 1122 | { | 1122 | { |
| 1123 | struct acpi_res_list *res_list_elem; | 1123 | struct acpi_res_list *res_list_elem; |
| 1124 | int ioport; | 1124 | int ioport; |
