aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common
diff options
context:
space:
mode:
authorJulien Grall <julien.grall@linaro.org>2013-09-13 13:49:19 +0100
committerIan Campbell <ian.campbell@citrix.com>2013-09-17 15:28:23 +0100
commite60d11198f7d7fa7cdb4260546d424de14449401 (patch)
tree461b04e9ea77f2aa0c422b063ef726d3708fbd0a /xen/common
parentd90abf9aa6aea90f2ffe402ca3bad8e6fdb9ef1b (diff)
downloadxen-e60d11198f7d7fa7cdb4260546d424de14449401.tar.gz
xen-e60d11198f7d7fa7cdb4260546d424de14449401.tar.bz2
xen-e60d11198f7d7fa7cdb4260546d424de14449401.zip
xen/dts: dt_find_interrupt_controller: accept multiple compatible strings
Signed-off-by: Julien Grall <julien.grall@linaro.org> Acked-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'xen/common')
-rw-r--r--xen/common/device_tree.c5
1 files changed, 3 insertions, 2 deletions
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;