diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2024-08-05 18:39:35 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2024-08-05 18:39:35 +0000 |
commit | 63321b1c26807a8e94348cb6381651bb39398d26 (patch) | |
tree | c9d33dfae1987b4286c769406d2a3ae43976add9 /sys/dev/fdt | |
parent | 16b37769ac648f5c87cbf7381d6892f3f02f248a (diff) |
Adjust for arm64_intr_get_parent() changes.
ok patrick@
Diffstat (limited to 'sys/dev/fdt')
-rw-r--r-- | sys/dev/fdt/mvgicp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/fdt/mvgicp.c b/sys/dev/fdt/mvgicp.c index a836e9fede9..8aed455ce67 100644 --- a/sys/dev/fdt/mvgicp.c +++ b/sys/dev/fdt/mvgicp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mvgicp.c,v 1.5 2021/10/24 17:52:26 mpi Exp $ */ +/* $OpenBSD: mvgicp.c,v 1.6 2024/08/05 18:39:34 kettenis Exp $ */ /* * Copyright (c) 2019 Patrick Wildt <patrick@blueri.se> * @@ -74,7 +74,7 @@ mvgicp_attach(struct device *parent, struct device *self, void *aux) struct mvgicp_softc *sc = (struct mvgicp_softc *)self; struct fdt_attach_args *faa = aux; struct interrupt_controller *ic; - uint32_t phandle; + int node; if (faa->fa_nreg < 1) { printf(": no registers\n"); @@ -100,11 +100,11 @@ mvgicp_attach(struct device *parent, struct device *self, void *aux) return; } - extern uint32_t fdt_intr_get_parent(int); - phandle = fdt_intr_get_parent(faa->fa_node); + extern int fdt_intr_get_parent(int); + node = fdt_intr_get_parent(faa->fa_node); extern LIST_HEAD(, interrupt_controller) interrupt_controllers; LIST_FOREACH(ic, &interrupt_controllers, ic_list) { - if (ic->ic_phandle == phandle) + if (ic->ic_node == node) break; } sc->sc_parent_ic = ic; |