diff options
author | avg <avg@FreeBSD.org> | 2010-09-10 11:19:03 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2010-09-10 11:19:03 +0000 |
commit | c9fe8ad7f06a5eb11bd5ba5224721d64a9b81afd (patch) | |
tree | df34a15378a2bfdd3403ef89e431e6f0c53c379c /sys/dev/ofw | |
parent | cab433458afbc7e2f04ab7edaf6866c0d70724ea (diff) | |
download | FreeBSD-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/ofw')
-rw-r--r-- | sys/dev/ofw/ofw_iicbus.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ofw/ofw_iicbus.c b/sys/dev/ofw/ofw_iicbus.c index 2ee9a72..875e4dd 100644 --- a/sys/dev/ofw/ofw_iicbus.c +++ b/sys/dev/ofw/ofw_iicbus.c @@ -46,8 +46,8 @@ __FBSDID("$FreeBSD$"); /* Methods */ static device_probe_t ofw_iicbus_probe; static device_attach_t ofw_iicbus_attach; -static device_t ofw_iicbus_add_child(device_t dev, int order, const char *name, - int unit); +static device_t ofw_iicbus_add_child(device_t dev, u_int order, + const char *name, int unit); static const struct ofw_bus_devinfo *ofw_iicbus_get_devinfo(device_t bus, device_t dev); @@ -147,7 +147,7 @@ ofw_iicbus_attach(device_t dev) } static device_t -ofw_iicbus_add_child(device_t dev, int order, const char *name, int unit) +ofw_iicbus_add_child(device_t dev, u_int order, const char *name, int unit) { device_t child; struct ofw_iicbus_devinfo *devi; |