From e60d11198f7d7fa7cdb4260546d424de14449401 Mon Sep 17 00:00:00 2001 From: Julien Grall Date: Fri, 13 Sep 2013 13:49:19 +0100 Subject: xen/dts: dt_find_interrupt_controller: accept multiple compatible strings Signed-off-by: Julien Grall Acked-by: Ian Campbell --- xen/common/device_tree.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'xen/common') diff --git a/xen/common/device_tree.c b/xen/common/device_tree.c index d2262ce31f..215592e84e 100644 --- a/xen/common/device_tree.c +++ b/xen/common/device_tree.c @@ -1834,11 +1834,12 @@ static void __init dt_alias_scan(void) } } -struct dt_device_node * __init dt_find_interrupt_controller(const char *compat) +struct dt_device_node * __init +dt_find_interrupt_controller(const struct dt_device_match *matches) { struct dt_device_node *np = NULL; - while ( (np = dt_find_compatible_node(np, NULL, compat)) ) + while ( (np = dt_find_matching_node(np, matches)) ) { if ( !dt_find_property(np, "interrupt-controller", NULL) ) continue; -- cgit v1.2.3