summaryrefslogtreecommitdiffstats
path: root/sys/dev/aic7xxx
diff options
context:
space:
mode:
authorgibbs <gibbs@FreeBSD.org>2004-10-15 23:39:52 +0000
committergibbs <gibbs@FreeBSD.org>2004-10-15 23:39:52 +0000
commit3f3b293e16c7821c93b21a29432b5e8792949d5e (patch)
tree74d38e403131812d84303026311424cb1aa7a6cf /sys/dev/aic7xxx
parent6aefcaf60e3258ed0a30c0933674b5d7a5f412d2 (diff)
downloadFreeBSD-src-3f3b293e16c7821c93b21a29432b5e8792949d5e.zip
FreeBSD-src-3f3b293e16c7821c93b21a29432b5e8792949d5e.tar.gz
Skip probe attempts for ISA PnP devices.
Pointed out by: imp
Diffstat (limited to 'sys/dev/aic7xxx')
-rw-r--r--sys/dev/aic7xxx/ahc_isa.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/aic7xxx/ahc_isa.c b/sys/dev/aic7xxx/ahc_isa.c
index 2595096..1515a68 100644
--- a/sys/dev/aic7xxx/ahc_isa.c
+++ b/sys/dev/aic7xxx/ahc_isa.c
@@ -137,11 +137,15 @@ ahc_isa_probe(device_t dev)
int error;
int zero;
- error = ENODEV;
+ error = ENXIO;
zero = 0;
regs = NULL;
irq = NULL;
+ /* Skip probes for ISA PnP devices */
+ if (isa_get_logicalid(dev) != 0)
+ return (error);
+
regs = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &zero, RF_ACTIVE);
if (regs == NULL) {
device_printf(dev, "No resources allocated.\n");
OpenPOWER on IntegriCloud