diff options
author | Justin T. Gibbs <gibbs@FreeBSD.org> | 2004-10-15 23:39:52 +0000 |
---|---|---|
committer | Justin T. Gibbs <gibbs@FreeBSD.org> | 2004-10-15 23:39:52 +0000 |
commit | a1a3da9b3828be2be30447f1abdd0b9e0aa0c51d (patch) | |
tree | 74d38e403131812d84303026311424cb1aa7a6cf /sys/dev/aic7xxx | |
parent | 1cef902abd26a1a47e0a6e8e73cf3d15c0df127a (diff) | |
download | src-a1a3da9b3828be2be30447f1abdd0b9e0aa0c51d.tar.gz src-a1a3da9b3828be2be30447f1abdd0b9e0aa0c51d.zip |
Skip probe attempts for ISA PnP devices.
Pointed out by: imp
Notes
Notes:
svn path=/head/; revision=136569
Diffstat (limited to 'sys/dev/aic7xxx')
-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 2595096a33b3..1515a68d60b9 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"); |