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
31
32
|
$FreeBSD$
--- zaphfc/zaphfc_freebsd.c
+++ zaphfc/zaphfc_freebsd.c
@@ -328,14 +328,26 @@
zaphfc_free(sc);
return (ENXIO);
}
+#if __FreeBSD_version < 700031
error = bus_setup_intr(
dev, sc->irq_res, INTR_TYPE_CLK | INTR_FAST,
hfc_interrupt, sc, &sc->irq_handle);
+#else
+ error = bus_setup_intr(
+ dev, sc->irq_res, INTR_TYPE_CLK | INTR_FAST, NULL,
+ hfc_interrupt, sc, &sc->irq_handle);
+#endif
if(error)
+#if __FreeBSD_version < 700031
error = bus_setup_intr(
dev, sc->irq_res, INTR_TYPE_CLK,
hfc_interrupt, sc, &sc->irq_handle);
+#else
+ error = bus_setup_intr(
+ dev, sc->irq_res, INTR_TYPE_CLK, NULL,
+ hfc_interrupt, sc, &sc->irq_handle);
+#endif
if (error) {
device_printf(dev, "Can't setup interrupt handler (error %d)\n",
|