diff options
author | gibbs <gibbs@FreeBSD.org> | 2004-10-15 23:39:52 +0000 |
---|---|---|
committer | gibbs <gibbs@FreeBSD.org> | 2004-10-15 23:39:52 +0000 |
commit | 3f3b293e16c7821c93b21a29432b5e8792949d5e (patch) | |
tree | 74d38e403131812d84303026311424cb1aa7a6cf | |
parent | 6aefcaf60e3258ed0a30c0933674b5d7a5f412d2 (diff) | |
download | FreeBSD-src-3f3b293e16c7821c93b21a29432b5e8792949d5e.zip FreeBSD-src-3f3b293e16c7821c93b21a29432b5e8792949d5e.tar.gz |
Skip probe attempts for ISA PnP devices.
Pointed out by: imp
-rw-r--r-- | sys/dev/aic7xxx/ahc_isa.c | 6 |
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"); |