From c9fe8ad7f06a5eb11bd5ba5224721d64a9b81afd Mon Sep 17 00:00:00 2001 From: avg Date: Fri, 10 Sep 2010 11:19:03 +0000 Subject: 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 --- sys/mips/idt/obio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/mips/idt/obio.c') diff --git a/sys/mips/idt/obio.c b/sys/mips/idt/obio.c index 44e9bfa..034b93a 100644 --- a/sys/mips/idt/obio.c +++ b/sys/mips/idt/obio.c @@ -57,7 +57,7 @@ __FBSDID("$FreeBSD$"); static int obio_activate_resource(device_t, device_t, int, int, struct resource *); -static device_t obio_add_child(device_t, int, const char *, int); +static device_t obio_add_child(device_t, u_int, const char *, int); static struct resource * obio_alloc_resource(device_t, device_t, int, int *, u_long, u_long, u_long, u_int); @@ -422,7 +422,7 @@ obio_hinted_child(device_t bus, const char *dname, int dunit) } static device_t -obio_add_child(device_t bus, int order, const char *name, int unit) +obio_add_child(device_t bus, u_int order, const char *name, int unit) { device_t child; struct obio_ivar *ivar; -- cgit v1.1