View Single Post
Old 04-04-07, 01:32 PM   #2
zander
NVIDIA Corporation
 
zander's Avatar
 
Join Date: Aug 2002
Posts: 3,740
Default Re: nVidia driver won't compile on -CURRENT

BTW, a more generic patch that doesn't break backwards compatibility is:
Code:
@@ -52,7 +52,11 @@
     /* XXX Revisit! (INTR_FAST, INTR_MPSAFE) */
     flags = INTR_TYPE_AV;
 
+#if __FreeBSD_version >= 700031
+    status = bus_setup_intr(dev, sc->irq, flags, NULL, nvidia_intr, sc, &sc->irq_ih);
+#else
     status = bus_setup_intr(dev, sc->irq, flags, nvidia_intr, sc, &sc->irq_ih);
+#endif
     if (status) {
         device_printf(dev, "NVRM: HW ISR setup failed.\n");
         goto fail;
zander is offline   Reply With Quote