summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2009-03-30 21:24:58 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2009-03-30 21:24:58 +0000
commitf2c37aede671db12573faa48cd3045ea0b62fc6a (patch)
tree7b691afaa43c4476c10483f3acfb1fcbcc64c33d /sys
parent090c40aae9e8b096aa25ba11f0a05b4c001af3a2 (diff)
bzero pci attach args
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/hppa/dev/dino.c4
-rw-r--r--sys/arch/hppa/dev/elroy.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/hppa/dev/dino.c b/sys/arch/hppa/dev/dino.c
index b590e69a684..5af79ba4e5b 100644
--- a/sys/arch/hppa/dev/dino.c
+++ b/sys/arch/hppa/dev/dino.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dino.c,v 1.24 2008/07/23 19:14:13 miod Exp $ */
+/* $OpenBSD: dino.c,v 1.25 2009/03/30 21:24:57 kettenis Exp $ */
/*
* Copyright (c) 2003-2005 Michael Shalayeff
@@ -1783,6 +1783,7 @@ dinoattach(parent, self, aux)
ca->ca_hpamask = -1;
pdc_scanbus(self, ca, MAXMODBUS, 0);
+ bzero(&pba, sizeof(pba));
pba.pba_busname = "pci";
pba.pba_iot = &sc->sc_iot;
pba.pba_memt = &sc->sc_memt;
@@ -1790,7 +1791,6 @@ dinoattach(parent, self, aux)
pba.pba_pc = &sc->sc_pc;
pba.pba_domain = pci_ndomains++;
pba.pba_bus = 0;
- pba.pba_bridgetag = NULL;
config_found(self, &pba, dinoprint);
/* postpone cleanup if necessary */
diff --git a/sys/arch/hppa/dev/elroy.c b/sys/arch/hppa/dev/elroy.c
index 15a8a5515d9..207303f855d 100644
--- a/sys/arch/hppa/dev/elroy.c
+++ b/sys/arch/hppa/dev/elroy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: elroy.c,v 1.4 2007/08/28 21:19:44 kettenis Exp $ */
+/* $OpenBSD: elroy.c,v 1.5 2009/03/30 21:24:57 kettenis Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
@@ -1175,12 +1175,12 @@ letoh64(r->eio_base), letoh64(r->eio_mask));
sc->sc_dmatag = elroy_dmat;
sc->sc_dmatag._cookie = sc;
+ bzero(&pba, sizeof(pba));
pba.pba_busname = "pci";
pba.pba_iot = &sc->sc_iot;
pba.pba_memt = &sc->sc_memt;
pba.pba_dmat = &sc->sc_dmatag;
pba.pba_pc = &sc->sc_pc;
- pba.pba_bridgetag = NULL;
pba.pba_domain = pci_ndomains++;
pba.pba_bus = 0; /* (letoh32(elroy_read32(&r->busnum)) & 0xff) >> 4; */
config_found(self, &pba, elroy_print);