summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pci.c
diff options
context:
space:
mode:
authorjordan <jordan@openbsd.org>2010-06-29 22:08:28 +0000
committerjordan <jordan@openbsd.org>2010-06-29 22:08:28 +0000
commitea14b1d782c1fc1ac1ea448f61fdc4be5eda4fe7 (patch)
tree954696dd17caac67db93e6fa9c2f875f70a9e4b0 /sys/dev/pci/pci.c
parentkeeping a TODO file here implies somebody cares (diff)
downloadwireguard-openbsd-ea14b1d782c1fc1ac1ea448f61fdc4be5eda4fe7.tar.xz
wireguard-openbsd-ea14b1d782c1fc1ac1ea448f61fdc4be5eda4fe7.zip
Add support for mapping ACPI to PCI devices
ok kettenis, deraadt
Diffstat (limited to '')
-rw-r--r--sys/dev/pci/pci.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index 7a18d0f0746..7e21eeacf1f 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pci.c,v 1.76 2010/04/21 23:12:24 deraadt Exp $ */
+/* $OpenBSD: pci.c,v 1.77 2010/06/29 22:08:29 jordan Exp $ */
/* $NetBSD: pci.c,v 1.31 1997/06/06 23:48:04 thorpej Exp $ */
/*
@@ -364,6 +364,8 @@ pci_probe_device(struct pci_softc *sc, pcitag_t tag,
pcisubmatch))) {
pcireg_t reg;
+ pci_dev_postattach(dev, &pa);
+
/* skip header type != 0 */
reg = pci_conf_read(pc, tag, PCI_BHLC_REG);
if (PCI_HDRTYPE_TYPE(reg) != 0)