summaryrefslogtreecommitdiffstats
path: root/sys/dev/ppbus
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2006-02-13 17:53:39 +0000
committerjhb <jhb@FreeBSD.org>2006-02-13 17:53:39 +0000
commit344cf4a81ec7c572def52149b6c6a37873d7be70 (patch)
tree2a4e435002784cd23187adaf7fdb179006f0a1d2 /sys/dev/ppbus
parent35636343a064f0fbd2b16949e7e7aed237e65a11 (diff)
downloadFreeBSD-src-344cf4a81ec7c572def52149b6c6a37873d7be70.zip
FreeBSD-src-344cf4a81ec7c572def52149b6c6a37873d7be70.tar.gz
Use a wildcard unit (-1) to device_find_child() in our identify routine to
match the wildcard unit passed to BUS_ADD_CHILD().
Diffstat (limited to 'sys/dev/ppbus')
-rw-r--r--sys/dev/ppbus/if_plip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ppbus/if_plip.c b/sys/dev/ppbus/if_plip.c
index 6c7cf7a..2b71be4 100644
--- a/sys/dev/ppbus/if_plip.c
+++ b/sys/dev/ppbus/if_plip.c
@@ -185,7 +185,7 @@ lp_identify(driver_t *driver, device_t parent)
{
device_t dev;
- dev = device_find_child(parent, "plip", 0);
+ dev = device_find_child(parent, "plip", -1);
if (!dev)
BUS_ADD_CHILD(parent, 0, "plip", -1);
}
OpenPOWER on IntegriCloud