diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2009-03-30 09:41:01 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2009-03-30 09:41:01 +0000 |
commit | a89fca3a0ff42f3808a217426b6e51a7c833658d (patch) | |
tree | f6b91e974e7b0578a3135e9b71b75b3c06f724f5 /sys/arch | |
parent | e163bf8e7372de45abb0696d9d29065cb2a030ec (diff) |
bzero pci attach args
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sgi/pci/macepcibridge.c | 4 | ||||
-rw-r--r-- | sys/arch/sgi/xbow/xbridge.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/sgi/pci/macepcibridge.c b/sys/arch/sgi/pci/macepcibridge.c index e1a63bf9339..f5f9ceb9ea4 100644 --- a/sys/arch/sgi/pci/macepcibridge.c +++ b/sys/arch/sgi/pci/macepcibridge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: macepcibridge.c,v 1.17 2008/07/30 17:37:46 miod Exp $ */ +/* $OpenBSD: macepcibridge.c,v 1.18 2009/03/30 09:41:00 kettenis Exp $ */ /* * Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se) @@ -244,6 +244,7 @@ mace_pcibrattach(struct device *parent, struct device *self, void *aux) /* * Configure our PCI devices. */ + bzero(&pba, sizeof(pba)); pba.pba_busname = "pci"; pba.pba_iot = sc->sc_io_bus_space; pba.pba_memt = sc->sc_mem_bus_space; @@ -252,7 +253,6 @@ mace_pcibrattach(struct device *parent, struct device *self, void *aux) pba.pba_pc = &sc->sc_pc; pba.pba_domain = pci_ndomains++; pba.pba_bus = sc->sc_dev.dv_unit; - pba.pba_bridgetag = NULL; config_found(self, &pba, mace_pcibrprint); /* Clear PCI errors and set up error interrupt */ diff --git a/sys/arch/sgi/xbow/xbridge.c b/sys/arch/sgi/xbow/xbridge.c index 3882aa23230..51548e80692 100644 --- a/sys/arch/sgi/xbow/xbridge.c +++ b/sys/arch/sgi/xbow/xbridge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xbridge.c,v 1.4 2008/08/25 13:35:34 jsing Exp $ */ +/* $OpenBSD: xbridge.c,v 1.5 2009/03/30 09:41:00 kettenis Exp $ */ /* * Copyright (c) 2008 Miodrag Vallat. @@ -278,6 +278,7 @@ xbridge_attach(struct device *parent, struct device *self, void *aux) * Attach children. */ + bzero(&pba, sizeof(pba)); pba.pba_busname = "pci"; pba.pba_iot = sc->sc_io_bus_space; pba.pba_memt = sc->sc_mem_bus_space; @@ -285,7 +286,6 @@ xbridge_attach(struct device *parent, struct device *self, void *aux) pba.pba_pc = &sc->sc_pc; pba.pba_domain = pci_ndomains++; pba.pba_bus = sc->sc_dev.dv_unit; - pba.pba_bridgetag = NULL; config_found(self, &pba, xbridge_print); return; |