diff options
author | Alexander Yurchenko <grange@cvs.openbsd.org> | 2006-11-18 20:44:41 +0000 |
---|---|---|
committer | Alexander Yurchenko <grange@cvs.openbsd.org> | 2006-11-18 20:44:41 +0000 |
commit | ed24d5af3ae61bcf3d9dbd0ff06ff5d5aedabc1b (patch) | |
tree | 1b926bd3107b912f4d5d5f0ba959e5543e9e5462 /sys/dev/pci/if_ral_pci.c | |
parent | f5908d679ed306c24fdaf83ba0993770f3066d8e (diff) |
Remove some useless variables/code dealing with cardbus BARs
reprogramming.
ok mglocker@
Diffstat (limited to 'sys/dev/pci/if_ral_pci.c')
-rw-r--r-- | sys/dev/pci/if_ral_pci.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pci/if_ral_pci.c b/sys/dev/pci/if_ral_pci.c index 76cc54fa830..af4b3a22663 100644 --- a/sys/dev/pci/if_ral_pci.c +++ b/sys/dev/pci/if_ral_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ral_pci.c,v 1.7 2006/10/22 12:14:44 damien Exp $ */ +/* $OpenBSD: if_ral_pci.c,v 1.8 2006/11/18 20:44:40 grange Exp $ */ /*- * Copyright (c) 2005, 2006 @@ -117,7 +117,6 @@ ral_pci_attach(struct device *parent, struct device *self, void *aux) struct rt2560_softc *sc = &psc->sc_sc; struct pci_attach_args *pa = aux; const char *intrstr; - bus_addr_t base; pci_intr_handle_t ih; int error; @@ -129,7 +128,7 @@ ral_pci_attach(struct device *parent, struct device *self, void *aux) /* map control/status registers */ error = pci_mapreg_map(pa, RAL_PCI_BAR0, PCI_MAPREG_TYPE_MEM | - PCI_MAPREG_MEM_TYPE_32BIT, 0, &sc->sc_st, &sc->sc_sh, &base, + PCI_MAPREG_MEM_TYPE_32BIT, 0, &sc->sc_st, &sc->sc_sh, NULL, &psc->sc_mapsize, 0); if (error != 0) { printf(": could not map memory space\n"); |