Skip probe attempts for ISA PnP devices.

Pointed out by: imp
This commit is contained in:
gibbs 2004-10-15 23:39:52 +00:00
parent 6aefcaf60e
commit 3f3b293e16

View File

@ -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");