diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-08-12 18:33:26 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1997-08-12 18:33:26 +0000 |
commit | 146a4d456d1a9cfd2aab9f0a97b914e6e35d9ccc (patch) | |
tree | 1b80f7d6b2e036849ce066334661f73f6fceee36 /sys | |
parent | d0a5ccbf2b609d5090e1dcbaba6e824cdc74602a (diff) |
Removed unused vars. Added missing arg to bus_space_map.
Reported by Berndt Josef Wulf <wulf@ping.net.au>
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/cy_pci.c | 5 |
1 files 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; |