summaryrefslogtreecommitdiff
path: root/misc/zaptel/files/patch-wct1xxp::wct1xxp.c
blob: 99b2d0642341515c1dfa71b1f8489c976d9c8572 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
$FreeBSD$

--- wct1xxp/wct1xxp.c
+++ wct1xxp/wct1xxp.c
@@ -1746,14 +1746,24 @@
 
 	/* Now we should set up the interrupt handler */
 
+#if __FreeBSD_version < 700031
 	error = bus_setup_intr(dev, sc->wc_irq, INTR_TYPE_CLK | INTR_FAST,
 		(void (*)(void *))wct1xxp_interrupt, sc, &(sc->irq_handler));
+#else
+	error = bus_setup_intr(dev, sc->wc_irq, INTR_TYPE_CLK | INTR_FAST, NULL,
+		(void (*)(void *))wct1xxp_interrupt, sc, &(sc->irq_handler));
+#endif
 
 	if(error)
 	{
 		printf("Can not use fast interrupts, switching to generic\n");
+#if __FreeBSD_version < 700031
 		error = bus_setup_intr(dev, sc->wc_irq, INTR_TYPE_CLK,
 			(void (*)(void *))wct1xxp_interrupt, sc, &(sc->irq_handler));
+#else
+		error = bus_setup_intr(dev, sc->wc_irq, INTR_TYPE_CLK, NULL,
+			(void (*)(void *))wct1xxp_interrupt, sc, &(sc->irq_handler));
+#endif
 	}