From a4f9b83fec7e82ff0c5610a5bb56f83a3c4138d0 Mon Sep 17 00:00:00 2001 From: kettenis Date: Mon, 5 Aug 2024 18:39:34 +0000 Subject: [PATCH] Adjust for arm64_intr_get_parent() changes. ok patrick@ --- sys/dev/fdt/mvgicp.c | 10 +++++----- 1 file 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 * @@ -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; -- 2.20.1