summaryrefslogtreecommitdiffstats
path: root/sys/sys/bus.h
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2010-09-04 17:28:29 +0000
committeravg <avg@FreeBSD.org>2010-09-04 17:28:29 +0000
commitf8094d8ba937a5c2e9e630aa1e3647352f82431f (patch)
tree4aa22e26aa346ac95236fb14935f4b703e51d501 /sys/sys/bus.h
parent81b8eb659b75619bf5e714b06ce5bcdbaab98852 (diff)
downloadFreeBSD-src-f8094d8ba937a5c2e9e630aa1e3647352f82431f.zip
FreeBSD-src-f8094d8ba937a5c2e9e630aa1e3647352f82431f.tar.gz
struct device: widen type of flags and order fields to u_int
Also change int -> u_int for order parameter in device_add_child_ordered. There should not be any ABI change as struct device is private to subr_bus.c and the API change should be compatible. To do: change int -> u_int for order parameter of bus_add_child method and its implementations. The change should also be API compatible, but is a bit more churn. Suggested by: imp, jhb MFC after: 1 week
Diffstat (limited to 'sys/sys/bus.h')
-rw-r--r--sys/sys/bus.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/bus.h b/sys/sys/bus.h
index 1e01fe8..276ebb0 100644
--- a/sys/sys/bus.h
+++ b/sys/sys/bus.h
@@ -410,7 +410,7 @@ bus_alloc_resource_any(device_t dev, int type, int *rid, u_int flags)
* Access functions for device.
*/
device_t device_add_child(device_t dev, const char *name, int unit);
-device_t device_add_child_ordered(device_t dev, int order,
+device_t device_add_child_ordered(device_t dev, u_int order,
const char *name, int unit);
void device_busy(device_t dev);
int device_delete_child(device_t dev, device_t child);
OpenPOWER on IntegriCloud