Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm/dist/bsd-core make sure to call pci_int...
details: https://anonhg.NetBSD.org/src/rev/04f37c3f4f24
branches: trunk
changeset: 747672:04f37c3f4f24
user: mrg <mrg%NetBSD.org@localhost>
date: Sun Sep 27 03:48:07 2009 +0000
description:
make sure to call pci_intr_*stablish() with the right first argument;
it worked by C-luck on x86, but macppc picked it up.
diffstat:
sys/external/bsd/drm/dist/bsd-core/drm_irq.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r b22f4ca3cf4f -r 04f37c3f4f24 sys/external/bsd/drm/dist/bsd-core/drm_irq.c
--- a/sys/external/bsd/drm/dist/bsd-core/drm_irq.c Sun Sep 27 02:36:38 2009 +0000
+++ b/sys/external/bsd/drm/dist/bsd-core/drm_irq.c Sun Sep 27 03:48:07 2009 +0000
@@ -225,7 +225,7 @@
goto err;
}
istr = pci_intr_string(dev->pa.pa_pc, ih);
- dev->irqh = pci_intr_establish(&dev->pa.pa_pc, ih, IPL_TTY,
+ dev->irqh = pci_intr_establish(dev->pa.pa_pc, ih, IPL_TTY,
drm_irq_handler_wrap, dev);
if (!dev->irqh) {
retcode = ENOENT;
@@ -264,7 +264,7 @@
bus_teardown_intr(dev->device, dev->irqr, dev->irqh);
DRM_LOCK();
#elif defined(__NetBSD__)
- pci_intr_disestablish(&dev->pa.pa_pc, dev->irqh);
+ pci_intr_disestablish(dev->pa.pa_pc, dev->irqh);
#endif
return 0;
Home |
Main Index |
Thread Index |
Old Index