Correct usage of ISA_PNP_PROBE

This commit is contained in:
Mike Smith 2001-08-30 09:16:53 +00:00
parent 2e5bbc3fed
commit 7b4d3c8814
3 changed files with 5 additions and 8 deletions

View File

@ -288,8 +288,8 @@ mse_probe(dev)
/* check PnP IDs */
error = ISA_PNP_PROBE(device_get_parent(dev), dev, mse_ids);
if (error == ENXIO)
return ENXIO;
if (error != ENOENT)
return error;
sc = device_get_softc(dev);
rid = 0;

View File

@ -288,8 +288,8 @@ mse_probe(dev)
/* check PnP IDs */
error = ISA_PNP_PROBE(device_get_parent(dev), dev, mse_ids);
if (error == ENXIO)
return ENXIO;
if (error != ENOENT)
return error;
sc = device_get_softc(dev);
rid = 0;

View File

@ -330,10 +330,7 @@ pcaprobe(device_t dev)
int error;
/* Check isapnp ids */
error = ISA_PNP_PROBE(device_get_parent(dev), dev, pca_ids);
if (error == ENXIO)
return ENXIO;
return 0;
return(ISA_PNP_PROBE(device_get_parent(dev), dev, pca_ids));
}