summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2009-01-20 00:05:43 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2009-01-20 00:05:43 +0000
commita4932bc6d04896b192055399e1dc0d1d11797887 (patch)
tree5f17b17b5a81d8603da5b87e8ef73b07579693da /sys
parent70abc2d871d4ed57cb377afde7933a4a3eb480f7 (diff)
downloadFreeBSD-src-a4932bc6d04896b192055399e1dc0d1d11797887.zip
FreeBSD-src-a4932bc6d04896b192055399e1dc0d1d11797887.tar.gz
Change the probe priority for PCI and I2C generic bus modules from
numerical constants to BUS_PROBE_GENERIC. Suggested by: jhb
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/iicbus/iicbus.c2
-rw-r--r--sys/dev/pci/pci.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/iicbus/iicbus.c b/sys/dev/iicbus/iicbus.c
index dccb8be..a0c73a3 100644
--- a/sys/dev/iicbus/iicbus.c
+++ b/sys/dev/iicbus/iicbus.c
@@ -55,7 +55,7 @@ iicbus_probe(device_t dev)
device_set_desc(dev, "Philips I2C bus");
/* Allow other subclasses to override this driver. */
- return (-1000);
+ return (BUS_PROBE_GENERIC);
}
#if SCAN_IICBUS
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index a027e99..633c4d5 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -2644,7 +2644,7 @@ pci_probe(device_t dev)
device_set_desc(dev, "PCI bus");
/* Allow other subclasses to override this driver. */
- return (-1000);
+ return (BUS_PROBE_GENERIC);
}
static int
OpenPOWER on IntegriCloud