diff options
author | mdodd <mdodd@FreeBSD.org> | 2003-04-16 06:51:26 +0000 |
---|---|---|
committer | mdodd <mdodd@FreeBSD.org> | 2003-04-16 06:51:26 +0000 |
commit | 5be29b82039d906cad0869d06004a1e9962c77db (patch) | |
tree | 3dbf5d5c7e8e4e9c4aba41355eb42144ffb9c5b4 /sys/pci/if_tl.c | |
parent | 66621997776872f20aecc99946c2cd01e533ed52 (diff) | |
download | FreeBSD-src-5be29b82039d906cad0869d06004a1e9962c77db.zip FreeBSD-src-5be29b82039d906cad0869d06004a1e9962c77db.tar.gz |
- Remove a block of code I missed in the previous commit.
- Call tl_ifmedia_upd() in tl_init() for cards with bitrate devices.
Diffstat (limited to 'sys/pci/if_tl.c')
-rw-r--r-- | sys/pci/if_tl.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/pci/if_tl.c b/sys/pci/if_tl.c index cbd7bb2..755d4af 100644 --- a/sys/pci/if_tl.c +++ b/sys/pci/if_tl.c @@ -1161,12 +1161,6 @@ tl_attach(dev) 0, ~0, 1, RF_ACTIVE); } #else - if (!(command & PCIM_CMD_MEMEN)) { - device_printf(dev, "failed to enable memory mapping!\n"); - error = ENXIO; - goto fail; - } - rid = TL_PCI_LOMEM; sc->tl_res = bus_alloc_resource(dev, SYS_RES_MEMORY, &rid, 0, ~0, 1, RF_ACTIVE); @@ -2110,6 +2104,8 @@ tl_init(xsc) mii = device_get_softc(sc->tl_miibus); mii_mediachg(mii); } + } else { + tl_ifmedia_upd(ifp); } /* Send the RX go command */ |