diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-01-03 21:30:08 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-01-03 21:30:08 +0000 |
commit | 5586f29f793be50b64ab06d5187dc240c7457d4c (patch) | |
tree | 8ff60eda2d53ba05ed560dd314227a7e846f087e /sys/arch/sparc64 | |
parent | 6d7a18fee9432339d7bef7f194875f3fa8aa3b48 (diff) |
Don't depend on evil (struct psycho_pbm *) cast.
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r-- | sys/arch/sparc64/dev/pci_machdep.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/sparc64/dev/pci_machdep.c b/sys/arch/sparc64/dev/pci_machdep.c index 6808c3ae637..7b9e3ae3fb7 100644 --- a/sys/arch/sparc64/dev/pci_machdep.c +++ b/sys/arch/sparc64/dev/pci_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_machdep.c,v 1.32 2007/11/25 00:38:49 kettenis Exp $ */ +/* $OpenBSD: pci_machdep.c,v 1.33 2008/01/03 21:30:07 kettenis Exp $ */ /* $NetBSD: pci_machdep.c,v 1.22 2001/07/20 00:07:13 eeh Exp $ */ /* @@ -430,11 +430,10 @@ pci_intr_establish(pc, ih, level, func, arg, what) char *what; { void *cookie; - struct psycho_pbm *pp = (struct psycho_pbm *)pc->cookie; DPRINTF(SPDB_INTR, ("pci_intr_establish: ih %lu; level %d", (u_long)ih, level)); - cookie = bus_intr_establish(pp->pp_memt, ih, level, 0, func, arg, what); + cookie = bus_intr_establish(pc->bustag, ih, level, 0, func, arg, what); DPRINTF(SPDB_INTR, ("; returning handle %p\n", cookie)); return (cookie); |