aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ti
diff options
context:
space:
mode:
authorMatthew N. Dodd <mdodd@FreeBSD.org>2003-04-16 03:16:57 +0000
committerMatthew N. Dodd <mdodd@FreeBSD.org>2003-04-16 03:16:57 +0000
commit533294b956a64b5420f2395a9a3bb047608b67fe (patch)
tree43770c3696a3adbe67787f9d9f8ff9d3bb30a425 /sys/dev/ti
parentc047e5b1a9d3c13f345a17a28dbb2569ad68d123 (diff)
Notes
Diffstat (limited to 'sys/dev/ti')
-rw-r--r--sys/dev/ti/if_ti.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/sys/dev/ti/if_ti.c b/sys/dev/ti/if_ti.c
index c8a1c63477e7..c1b5796e5787 100644
--- a/sys/dev/ti/if_ti.c
+++ b/sys/dev/ti/if_ti.c
@@ -2092,7 +2092,6 @@ static int
ti_attach(dev)
device_t dev;
{
- u_int32_t command;
struct ifnet *ifp;
struct ti_softc *sc;
int unit, error = 0, rid;
@@ -2123,14 +2122,6 @@ ti_attach(dev)
* Map control/status registers.
*/
pci_enable_busmaster(dev);
- pci_enable_io(dev, SYS_RES_MEMORY);
- command = pci_read_config(dev, PCIR_COMMAND, 4);
-
- if (!(command & PCIM_CMD_MEMEN)) {
- printf("ti%d: failed to enable memory mapping!\n", unit);
- error = ENXIO;
- goto fail;
- }
rid = TI_PCI_LOMEM;
sc->ti_res = bus_alloc_resource(dev, SYS_RES_MEMORY, &rid,