diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-05-13 15:33:19 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-05-13 15:33:19 +0000 |
commit | b0c05dd06457f702f762c15cfb37a5563a02e3a5 (patch) | |
tree | 3011e7fd24b1831932afc170aa8d85c37fef7981 /sys/arch/i386 | |
parent | 718d4d3ffdeb2e5b078c443cb5a84a18c6144e18 (diff) |
left tag uninitted in the good case in the last commit; jason@ pointed it out
Diffstat (limited to 'sys/arch/i386')
-rw-r--r-- | sys/arch/i386/pci/pci_intr_fixup.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/i386/pci/pci_intr_fixup.c b/sys/arch/i386/pci/pci_intr_fixup.c index bed4e666372..38228166901 100644 --- a/sys/arch/i386/pci/pci_intr_fixup.c +++ b/sys/arch/i386/pci/pci_intr_fixup.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_intr_fixup.c,v 1.15 2001/05/12 21:01:53 mickey Exp $ */ +/* $OpenBSD: pci_intr_fixup.c,v 1.16 2001/05/13 15:33:18 mickey Exp $ */ /* $NetBSD: pci_intr_fixup.c,v 1.10 2000/08/10 21:18:27 soda Exp $ */ /* @@ -688,16 +688,16 @@ pci_intr_fixup(sc, pc, iot) if (pirh->signature != 0 && (pirh->router_bus != 0 || pirh->router_devfunc != 0 || pirh->compat_router != 0)) { + icutag = pci_make_tag(pc, pirh->router_bus, + PIR_DEVFUNC_DEVICE(pirh->router_devfunc), + PIR_DEVFUNC_FUNCTION(pirh->router_devfunc)); if (pirh->compat_router == 0 || (piit = pciintr_icu_lookup(pirh->compat_router)) == NULL) { /* * No compat ID, or don't know the compat ID? Read * it from the configuration header. */ - pirh->compat_router = pci_conf_read(pc, - pci_make_tag(pc, pirh->router_bus, - PIR_DEVFUNC_DEVICE(pirh->router_devfunc), - PIR_DEVFUNC_FUNCTION(pirh->router_devfunc)), + pirh->compat_router = pci_conf_read(pc, icutag, PCI_ID_REG); } if (piit == NULL) |