summaryrefslogtreecommitdiffstats
path: root/sys/dev/an/if_an_pci.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2009-11-24 16:54:54 +0000
committerjhb <jhb@FreeBSD.org>2009-11-24 16:54:54 +0000
commit12cc74363af56825a0d1dbbb25123f05a4ed8f3f (patch)
treef9603e41297a5347547d40c96a864e08be77a245 /sys/dev/an/if_an_pci.c
parent25badd29156952d79d33f97049cb04f8e587a591 (diff)
downloadFreeBSD-src-12cc74363af56825a0d1dbbb25123f05a4ed8f3f.zip
FreeBSD-src-12cc74363af56825a0d1dbbb25123f05a4ed8f3f.tar.gz
Use bus_*() rather than bus_space_*().
Diffstat (limited to 'sys/dev/an/if_an_pci.c')
-rw-r--r--sys/dev/an/if_an_pci.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/sys/dev/an/if_an_pci.c b/sys/dev/an/if_an_pci.c
index 1efc494..2d0d2b5 100644
--- a/sys/dev/an/if_an_pci.c
+++ b/sys/dev/an/if_an_pci.c
@@ -175,9 +175,6 @@ an_attach_pci(dev)
goto fail;
}
- sc->an_btag = rman_get_bustag(sc->port_res);
- sc->an_bhandle = rman_get_bushandle(sc->port_res);
-
/* Allocate memory for MPI350 */
if (sc->mpi350) {
/* Allocate memory */
@@ -187,8 +184,6 @@ an_attach_pci(dev)
device_printf(dev, "couldn't map memory\n");
goto fail;
}
- sc->an_mem_btag = rman_get_bustag(sc->mem_res);
- sc->an_mem_bhandle = rman_get_bushandle(sc->mem_res);
/* Allocate aux. memory */
sc->mem_aux_rid = PCIR_BAR(2);
@@ -198,8 +193,6 @@ an_attach_pci(dev)
device_printf(dev, "couldn't map aux memory\n");
goto fail;
}
- sc->an_mem_aux_btag = rman_get_bustag(sc->mem_aux_res);
- sc->an_mem_aux_bhandle = rman_get_bushandle(sc->mem_aux_res);
/* Allocate DMA region */
error = bus_dma_tag_create(NULL, /* parent */
OpenPOWER on IntegriCloud