From 1ce364652cea490bad33dcaf34c5f0d6cfa951d2 Mon Sep 17 00:00:00 2001 From: Sepherosa Ziehau Date: Tue, 7 Jul 2009 11:11:51 +0800 Subject: [PATCH] acpi_bus_alloc_gas: Constify gas parameter --- sys/dev/acpica5/acpi.c | 2 +- sys/dev/acpica5/acpivar.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/acpica5/acpi.c b/sys/dev/acpica5/acpi.c index 71ab4f1..7910265 100644 --- a/sys/dev/acpica5/acpi.c +++ b/sys/dev/acpica5/acpi.c @@ -1011,7 +1011,7 @@ acpi_release_resource(device_t bus, device_t child, int type, int rid, /* Allocate an IO port or memory resource, given its GAS. */ struct resource * -acpi_bus_alloc_gas(device_t dev, int *rid, ACPI_GENERIC_ADDRESS *gas, +acpi_bus_alloc_gas(device_t dev, int *rid, const ACPI_GENERIC_ADDRESS *gas, u_int flags) { int type; diff --git a/sys/dev/acpica5/acpivar.h b/sys/dev/acpica5/acpivar.h index caba74c..37d63ff 100644 --- a/sys/dev/acpica5/acpivar.h +++ b/sys/dev/acpica5/acpivar.h @@ -266,7 +266,7 @@ ACPI_STATUS acpi_Disable(struct acpi_softc *sc); void acpi_UserNotify(const char *subsystem, ACPI_HANDLE h, uint8_t notify); struct resource *acpi_bus_alloc_gas(device_t dev, int *rid, - ACPI_GENERIC_ADDRESS *gas, u_int flags); + const ACPI_GENERIC_ADDRESS *gas, u_int flags); struct acpi_parse_resource_set { void (*set_init)(device_t dev, void *arg, void **context); -- 1.7.7.2