From 146a4d456d1a9cfd2aab9f0a97b914e6e35d9ccc Mon Sep 17 00:00:00 2001 From: Niklas Hallqvist Date: Tue, 12 Aug 1997 18:33:26 +0000 Subject: Removed unused vars. Added missing arg to bus_space_map. Reported by Berndt Josef Wulf --- sys/dev/pci/cy_pci.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/dev/pci/cy_pci.c b/sys/dev/pci/cy_pci.c index 6bc7c71a6ee..6a055b4ba8c 100644 --- a/sys/dev/pci/cy_pci.c +++ b/sys/dev/pci/cy_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cy_pci.c,v 1.3 1996/11/28 23:28:02 niklas Exp $ */ +/* $OpenBSD: cy_pci.c,v 1.4 1997/08/12 18:33:25 niklas Exp $ */ /* * cy.c @@ -72,7 +72,6 @@ cy_probe_pci(parent, match, aux) struct device *parent; void *match, *aux; { - vm_offset_t v_addr, p_addr; int card = ((struct device *)match)->dv_unit; struct pci_attach_args *pa = aux; bus_space_tag_t memt; @@ -116,7 +115,7 @@ cy_probe_pci(parent, match, aux) return 0; } - if(bus_space_map(iot, iobase, iosize, &ioh) != 0) { + if(bus_space_map(iot, iobase, iosize, 0, &ioh) != 0) { bus_space_unmap(memt, memh, memsize); printf("cy%d: couldn't map PCI io region\n", card); return 0; -- cgit v1.2.3