arm_intr_establish_fdt() has long been renamed to fdt_intr_establish().
authorpatrick <patrick@openbsd.org>
Fri, 5 Feb 2021 00:42:25 +0000 (00:42 +0000)
committerpatrick <patrick@openbsd.org>
Fri, 5 Feb 2021 00:42:25 +0000 (00:42 +0000)
sys/dev/fdt/bcm2835_dwctwo.c
sys/dev/fdt/exuart.c
sys/dev/fdt/tcpci.c

index 8f90fc3..18e4b13 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: bcm2835_dwctwo.c,v 1.1 2020/05/14 15:44:07 kettenis Exp $     */
+/*     $OpenBSD: bcm2835_dwctwo.c,v 1.2 2021/02/05 00:42:25 patrick Exp $      */
 /*
  * Copyright (c) 2015 Masao Uebayashi <uebayasi@tombiinc.com>
  *
@@ -115,7 +115,7 @@ bcm_dwctwo_attach(struct device *parent, struct device *self, void *aux)
        if (idx == -1)
                idx = 1;
 
-       sc->sc_ih = arm_intr_establish_fdt_idx(faa->fa_node, idx, IPL_USB,
+       sc->sc_ih = fdt_intr_establish_idx(faa->fa_node, idx, IPL_USB,
            dwc2_intr, (void *)&sc->sc_dwc2, sc->sc_dwc2.sc_bus.bdev.dv_xname);
        if (sc->sc_ih == NULL)
                panic("%s: intr_establish failed!", __func__);
index 89532c8..3887a76 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: exuart.c,v 1.3 2021/02/05 00:13:37 patrick Exp $ */
+/* $OpenBSD: exuart.c,v 1.4 2021/02/05 00:42:25 patrick Exp $ */
 /*
  * Copyright (c) 2005 Dale Rahn <drahn@motorola.com>
  *
@@ -146,7 +146,7 @@ exuart_init_cons(void)
                }
                stdout_node = OF_finddevice("/serial@13800000");
        }
-       
+
        if (fdt_get_reg(node, 0, &reg))
                return;
 
@@ -171,8 +171,7 @@ exuart_attach(struct device *parent, struct device *self, void *aux)
        if (faa->fa_nreg < 1)
                return;
 
-
-       sc->sc_irq = arm_intr_establish_fdt(faa->fa_node, IPL_TTY,
+       sc->sc_irq = fdt_intr_establish(faa->fa_node, IPL_TTY,
            exuart_intr, sc, sc->sc_dev.dv_xname);
 
        sc->sc_iot = faa->fa_iot;
index 46cf1ae..d521fb3 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcpci.c,v 1.1 2020/04/27 21:30:52 patrick Exp $ */
+/* $OpenBSD: tcpci.c,v 1.2 2021/02/05 00:42:25 patrick Exp $ */
 /*
  * Copyright (c) 2018 Patrick Wildt <patrick@blueri.se>
  *
@@ -232,7 +232,7 @@ tcpci_attach(struct device *parent, struct device *self, void *aux)
        pinctrl_byname(sc->sc_node, "default");
 
        task_set(&sc->sc_task, tcpci_task, sc);
-       sc->sc_ih = arm_intr_establish_fdt(sc->sc_node, IPL_BIO,
+       sc->sc_ih = fdt_intr_establish(sc->sc_node, IPL_BIO,
            tcpci_intr, sc, sc->sc_dev.dv_xname);
        if (sc->sc_ih == NULL) {
                printf(": unable to establish interrupt\n");