summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_tl.c
diff options
context:
space:
mode:
authormdodd <mdodd@FreeBSD.org>2003-04-16 06:51:26 +0000
committermdodd <mdodd@FreeBSD.org>2003-04-16 06:51:26 +0000
commit5be29b82039d906cad0869d06004a1e9962c77db (patch)
tree3dbf5d5c7e8e4e9c4aba41355eb42144ffb9c5b4 /sys/pci/if_tl.c
parent66621997776872f20aecc99946c2cd01e533ed52 (diff)
downloadFreeBSD-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.c8
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 */
OpenPOWER on IntegriCloud