summaryrefslogtreecommitdiffstats
path: root/sys/dev/pcf
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2006-02-02 23:57:31 +0000
committerimp <imp@FreeBSD.org>2006-02-02 23:57:31 +0000
commitf959b215ab6cc54381e85a0d8d4664e7dc2ba304 (patch)
treed121dba8eadbe465c84493b58c06b35e917d5c8e /sys/dev/pcf
parent894653aa65c55f0d7acc22973b0e70f96b630a1b (diff)
downloadFreeBSD-src-f959b215ab6cc54381e85a0d8d4664e7dc2ba304.zip
FreeBSD-src-f959b215ab6cc54381e85a0d8d4664e7dc2ba304.tar.gz
If the device has a PNPID, don't bother to attach. There were some
instances where the probe that was here would falsely grab a device.
Diffstat (limited to 'sys/dev/pcf')
-rw-r--r--sys/dev/pcf/pcf_isa.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/pcf/pcf_isa.c b/sys/dev/pcf/pcf_isa.c
index a4a2a50..2de3b45 100644
--- a/sys/dev/pcf/pcf_isa.c
+++ b/sys/dev/pcf/pcf_isa.c
@@ -101,9 +101,12 @@ pcf_isa_probe(device_t dev)
u_long start, count;
u_int rid = 0, port, error;
- bus_get_resource(dev, SYS_RES_IOPORT, rid, &start, &count);
-
+ /* skip PnP probes */
+ if (isa_get_logicalid(dev))
+ return (ENXIO);
+
/* The port address must be explicitly specified */
+ bus_get_resource(dev, SYS_RES_IOPORT, rid, &start, &count);
if ((error = resource_int_value(PCF_NAME, 0, "port", &port) != 0))
return (error);
OpenPOWER on IntegriCloud