diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2009-03-29 22:58:32 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2009-03-29 22:58:32 +0000 |
commit | aa59d00c4967ba65d31c85f3900d2cc9d6d1af22 (patch) | |
tree | 26dd0fd5c5bbd1a58084449cf6c4b95ee11cbb36 /sys/arch/macppc | |
parent | 149f74901a7314dc34ed6d07a087e56ca86fbf38 (diff) |
bzero pci attach args
Diffstat (limited to 'sys/arch/macppc')
-rw-r--r-- | sys/arch/macppc/pci/ht.c | 4 | ||||
-rw-r--r-- | sys/arch/macppc/pci/mpcpcibus.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/macppc/pci/ht.c b/sys/arch/macppc/pci/ht.c index 6ec845932bc..39735bcbe2f 100644 --- a/sys/arch/macppc/pci/ht.c +++ b/sys/arch/macppc/pci/ht.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ht.c,v 1.11 2007/05/08 03:22:11 deraadt Exp $ */ +/* $OpenBSD: ht.c,v 1.12 2009/03/29 22:58:31 kettenis Exp $ */ /* * Copyright (c) 2005 Mark Kettenis @@ -184,6 +184,7 @@ ht_attach(struct device *parent, struct device *self, void *aux) sc->sc_pc.pc_intr_disestablish = ht_intr_disestablish; sc->sc_pc.pc_ether_hw_addr = ht_ether_hw_addr; + bzero(&pba, sizeof(pba)); pba.pba_busname = "pci"; pba.pba_iot = sc->sc_iot; pba.pba_memt = sc->sc_memt; @@ -191,7 +192,6 @@ ht_attach(struct device *parent, struct device *self, void *aux) pba.pba_pc = &sc->sc_pc; pba.pba_domain = pci_ndomains++; pba.pba_bus = 0; - pba.pba_bridgetag = NULL; printf(", %d devices\n", sc->sc_maxdevs); diff --git a/sys/arch/macppc/pci/mpcpcibus.c b/sys/arch/macppc/pci/mpcpcibus.c index 6371647c71d..74cac636b33 100644 --- a/sys/arch/macppc/pci/mpcpcibus.c +++ b/sys/arch/macppc/pci/mpcpcibus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpcpcibus.c,v 1.37 2008/03/25 22:38:28 kettenis Exp $ */ +/* $OpenBSD: mpcpcibus.c,v 1.38 2009/03/29 22:58:31 kettenis Exp $ */ /* * Copyright (c) 1997 Per Fogelstrom @@ -438,6 +438,7 @@ mpcpcibrattach(struct device *parent, struct device *self, void *aux) if ((strcmp(compat, "bandit")) != 0) pci_addr_fixup(sc, &lcp->lc_pc, 32); + bzero(&pba, sizeof(pba)); pba.pba_dmat = &pci_bus_dma_tag; pba.pba_busname = "pci"; @@ -446,7 +447,6 @@ mpcpcibrattach(struct device *parent, struct device *self, void *aux) pba.pba_pc = &lcp->lc_pc; pba.pba_domain = pci_ndomains++; pba.pba_bus = 0; - pba.pba_bridgetag = NULL; /* we want to check pci irq settings */ if (of_node != 0) { |