Fix DL100xx based cards. Don't drop resources. It was approrpiate in

the probe code that this used to be part of, but as part of the
attach, we shouldn't be dropping the resources here.

Also, allocate the proper rid in the ax88x90 setup.
This commit is contained in:
Warner Losh 2005-09-07 00:00:16 +00:00
parent 6942fac077
commit 56013d44db

View File

@ -293,7 +293,6 @@ ed_pccard_attach(device_t dev)
error = ed_probe_Novell(dev, sc->port_rid, 0);
if (error == 0)
error = ed_pccard_Linksys(dev);
ed_release_resources(dev);
if (error == 0)
goto end2;
}
@ -581,7 +580,7 @@ ed_pccard_ax88x90(device_t dev)
}
ax88x90_geteprom(sc);
ed_release_resources(dev);
error = ed_probe_Novell(dev, 0, flags);
error = ed_probe_Novell(dev, sc->port_rid, flags);
if (error == 0) {
sc->vendor = ED_VENDOR_NOVELL;
sc->type = ED_TYPE_NE2000;