Correct usage of ISA_PNP_PROBE
This commit is contained in:
parent
2e5bbc3fed
commit
7b4d3c8814
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user