From 3f3b293e16c7821c93b21a29432b5e8792949d5e Mon Sep 17 00:00:00 2001 From: gibbs Date: Fri, 15 Oct 2004 23:39:52 +0000 Subject: [PATCH] Skip probe attempts for ISA PnP devices. Pointed out by: imp --- sys/dev/aic7xxx/ahc_isa.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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");