summaryrefslogtreecommitdiffstats
path: root/sys/dev/firewire
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/firewire
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/firewire')
-rw-r--r--sys/dev/firewire/firewire.c4
-rw-r--r--sys/dev/firewire/fwohci_pci.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/firewire/firewire.c b/sys/dev/firewire/firewire.c
index a035959..490f39b 100644
--- a/sys/dev/firewire/firewire.c
+++ b/sys/dev/firewire/firewire.c
@@ -102,7 +102,7 @@ static void firewire_xfer_timeout(void *, int);
#if 0
static int firewire_shutdown (device_t);
#endif
-static device_t firewire_add_child (device_t, int, const char *, int);
+static device_t firewire_add_child(device_t, u_int, const char *, int);
static void fw_try_bmr (void *);
static void fw_try_bmr_callback (struct fw_xfer *);
static void fw_asystart (struct fw_xfer *);
@@ -488,7 +488,7 @@ firewire_attach(device_t dev)
* Attach it as child.
*/
static device_t
-firewire_add_child(device_t dev, int order, const char *name, int unit)
+firewire_add_child(device_t dev, u_int order, const char *name, int unit)
{
device_t child;
struct firewire_softc *sc;
diff --git a/sys/dev/firewire/fwohci_pci.c b/sys/dev/firewire/fwohci_pci.c
index 5524954..0bb66a9 100644
--- a/sys/dev/firewire/fwohci_pci.c
+++ b/sys/dev/firewire/fwohci_pci.c
@@ -487,7 +487,7 @@ fwohci_pci_shutdown(device_t dev)
}
static device_t
-fwohci_pci_add_child(device_t dev, int order, const char *name, int unit)
+fwohci_pci_add_child(device_t dev, u_int order, const char *name, int unit)
{
struct fwohci_softc *sc;
device_t child;
OpenPOWER on IntegriCloud