From ed24d5af3ae61bcf3d9dbd0ff06ff5d5aedabc1b Mon Sep 17 00:00:00 2001 From: Alexander Yurchenko Date: Sat, 18 Nov 2006 20:44:41 +0000 Subject: Remove some useless variables/code dealing with cardbus BARs reprogramming. ok mglocker@ --- sys/dev/pci/if_ral_pci.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/dev/pci/if_ral_pci.c') 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"); -- cgit v1.2.3