summaryrefslogtreecommitdiffstats
path: root/sys/dev/iicbus/iicbus.c
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2009-01-06 17:23:37 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2009-01-06 17:23:37 +0000
commit4d7a485a5266b1987891fc4cd20902fc96d1a88a (patch)
tree6451bf655643fdb49d8fd50ea77f0f8149f7b436 /sys/dev/iicbus/iicbus.c
parent2fd77860b9c036749ea1b22a224818e1a757a1e3 (diff)
downloadFreeBSD-src-4d7a485a5266b1987891fc4cd20902fc96d1a88a.zip
FreeBSD-src-4d7a485a5266b1987891fc4cd20902fc96d1a88a.tar.gz
Change the way I2C bus attachment works to allow firmware-assisted bus
subclasses as are available with PCI. Changes I2C device drivers without real probe logic to return BUS_PROBE_NOWILDWARD to avoid interference with firmware bus enumeration, and reduces the probe priority of the iicbus base driver to allow subclass attachment at higher priority. Discussed on: freebsd-arch
Diffstat (limited to 'sys/dev/iicbus/iicbus.c')
-rw-r--r--sys/dev/iicbus/iicbus.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/iicbus/iicbus.c b/sys/dev/iicbus/iicbus.c
index de64874..e926984 100644
--- a/sys/dev/iicbus/iicbus.c
+++ b/sys/dev/iicbus/iicbus.c
@@ -53,7 +53,9 @@ iicbus_probe(device_t dev)
{
device_set_desc(dev, "Philips I2C bus");
- return (0);
+
+ /* Allow other subclasses to override this driver. */
+ return (-1000);
}
#if SCAN_IICBUS
OpenPOWER on IntegriCloud