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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=82554
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));
}