diff options
author | iedowse <iedowse@FreeBSD.org> | 2001-07-22 21:31:44 +0000 |
---|---|---|
committer | iedowse <iedowse@FreeBSD.org> | 2001-07-22 21:31:44 +0000 |
commit | 25fd88c17aa04dd4d70fbafc37db6a0d85b8e743 (patch) | |
tree | 585f57bfb7832be0575e3dc8e9019c97bd015572 /sys/dev/ed | |
parent | 12c589f5161d4ae17664dfc2eac75a88dfdfc3c3 (diff) | |
download | FreeBSD-src-25fd88c17aa04dd4d70fbafc37db6a0d85b8e743.zip FreeBSD-src-25fd88c17aa04dd4d70fbafc37db6a0d85b8e743.tar.gz |
Remove an old hack that remembered if the card type was Linksys by
storing a flag in the global variable 'linksys' during the probe
routine and reading it during the attach routine. We now have the
ED_VENDOR_LINKSYS vendor code stored in sc->vendor, so check that
instead.
Diffstat (limited to 'sys/dev/ed')
-rw-r--r-- | sys/dev/ed/if_ed_pccard.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/dev/ed/if_ed_pccard.c b/sys/dev/ed/if_ed_pccard.c index 38af728..d118d7c 100644 --- a/sys/dev/ed/if_ed_pccard.c +++ b/sys/dev/ed/if_ed_pccard.c @@ -76,7 +76,6 @@ static void ed_pccard_dlink_mii_reset(struct ed_softc *sc); static u_int ed_pccard_dlink_mii_readbits(struct ed_softc *sc, int nbits); static void ed_pccard_dlink_mii_writebits(struct ed_softc *sc, u_int val, int nbits); -static int linksys; /* * ed_pccard_detach - unload the driver and clear the table. @@ -519,11 +518,8 @@ ed_pccard_probe(device_t dev) goto end2; end: - if (ED_FLAGS_GETTYPE(flags) & ED_FLAGS_LINKSYS) { - linksys = ed_pccard_Linksys(dev); - } else { - linksys = 0; - } + if (ED_FLAGS_GETTYPE(flags) & ED_FLAGS_LINKSYS) + ed_pccard_Linksys(dev); end2: if (error == 0) error = ed_alloc_irq(dev, 0, 0); @@ -556,7 +552,7 @@ ed_pccard_attach(device_t dev) return (error); } - if (linksys == 0) { + if (sc->vendor != ED_VENDOR_LINKSYS) { pccard_get_ether(dev, ether_addr); for (i = 0, sum = 0; i < ETHER_ADDR_LEN; i++) sum |= ether_addr[i]; |