summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2010-09-10 11:19:03 +0000
committeravg <avg@FreeBSD.org>2010-09-10 11:19:03 +0000
commitc9fe8ad7f06a5eb11bd5ba5224721d64a9b81afd (patch)
treedf34a15378a2bfdd3403ef89e431e6f0c53c379c /sys/dev/acpica
parentcab433458afbc7e2f04ab7edaf6866c0d70724ea (diff)
downloadFreeBSD-src-c9fe8ad7f06a5eb11bd5ba5224721d64a9b81afd.zip
FreeBSD-src-c9fe8ad7f06a5eb11bd5ba5224721d64a9b81afd.tar.gz
bus_add_child: change type of order parameter to u_int
This reflects actual type used to store and compare child device orders. Change is mostly done via a Coccinelle (soon to be devel/coccinelle) semantic patch. Verified by LINT+modules kernel builds. Followup to: r212213 MFC after: 10 days
Diffstat (limited to 'sys/dev/acpica')
-rw-r--r--sys/dev/acpica/acpi.c4
-rw-r--r--sys/dev/acpica/acpi_cpu.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c
index 7c941f3..5cccc9e 100644
--- a/sys/dev/acpica/acpi.c
+++ b/sys/dev/acpica/acpi.c
@@ -105,7 +105,7 @@ static int acpi_attach(device_t dev);
static int acpi_suspend(device_t dev);
static int acpi_resume(device_t dev);
static int acpi_shutdown(device_t dev);
-static device_t acpi_add_child(device_t bus, int order, const char *name,
+static device_t acpi_add_child(device_t bus, u_int order, const char *name,
int unit);
static int acpi_print_child(device_t bus, device_t child);
static void acpi_probe_nomatch(device_t bus, device_t child);
@@ -781,7 +781,7 @@ acpi_shutdown(device_t dev)
* Handle a new device being added
*/
static device_t
-acpi_add_child(device_t bus, int order, const char *name, int unit)
+acpi_add_child(device_t bus, u_int order, const char *name, int unit)
{
struct acpi_device *ad;
device_t child;
diff --git a/sys/dev/acpica/acpi_cpu.c b/sys/dev/acpica/acpi_cpu.c
index 45882a2..5dd6ab9 100644
--- a/sys/dev/acpica/acpi_cpu.c
+++ b/sys/dev/acpica/acpi_cpu.c
@@ -148,7 +148,7 @@ static int acpi_cpu_resume(device_t dev);
static int acpi_pcpu_get_id(uint32_t idx, uint32_t *acpi_id,
uint32_t *cpu_id);
static struct resource_list *acpi_cpu_get_rlist(device_t dev, device_t child);
-static device_t acpi_cpu_add_child(device_t dev, int order, const char *name,
+static device_t acpi_cpu_add_child(device_t dev, u_int order, const char *name,
int unit);
static int acpi_cpu_read_ivar(device_t dev, device_t child, int index,
uintptr_t *result);
@@ -479,7 +479,7 @@ acpi_cpu_get_rlist(device_t dev, device_t child)
}
static device_t
-acpi_cpu_add_child(device_t dev, int order, const char *name, int unit)
+acpi_cpu_add_child(device_t dev, u_int order, const char *name, int unit)
{
struct acpi_cpu_device *ad;
device_t child;
OpenPOWER on IntegriCloud