summaryrefslogtreecommitdiffstats
path: root/sys/dev/iicbus/ds1672.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/ds1672.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/ds1672.c')
-rw-r--r--sys/dev/iicbus/ds1672.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/iicbus/ds1672.c b/sys/dev/iicbus/ds1672.c
index a2c4577..1169271 100644
--- a/sys/dev/iicbus/ds1672.c
+++ b/sys/dev/iicbus/ds1672.c
@@ -61,7 +61,7 @@ ds1672_probe(device_t dev)
{
/* XXX really probe? */
device_set_desc(dev, "Dallas Semiconductor DS1672 RTC");
- return (0);
+ return (BUS_PROBE_NOWILDCARD);
}
static int
OpenPOWER on IntegriCloud