aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen
diff options
context:
space:
mode:
authorJulien Grall <julien.grall@linaro.org>2013-09-13 13:49:12 +0100
committerIan Campbell <ian.campbell@citrix.com>2013-09-17 15:27:54 +0100
commit6db389ab3fc4214c4ed3df07253879dee2254edc (patch)
tree477175c78c1aba215e21013347e978df48e9637d /xen/include/xen
parentc88d32f463f75664285fd98856a7cdc6e01409bc (diff)
downloadxen-6db389ab3fc4214c4ed3df07253879dee2254edc.tar.gz
xen-6db389ab3fc4214c4ed3df07253879dee2254edc.tar.bz2
xen-6db389ab3fc4214c4ed3df07253879dee2254edc.zip
xen: Use the right string comparison function in device tree
When of_node_cmp and of_compat_cmp was introduced in commit fb97eb6 "xen/arm: Create a hierarchical device tree", they were copied from the wrong Linux header. Signed-off-by: Julien Grall <julien.grall@linaro.org> Acked-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'xen/include/xen')
-rw-r--r--xen/include/xen/device_tree.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/xen/include/xen/device_tree.h b/xen/include/xen/device_tree.h
index 91caf1f3ba..5a51ab679d 100644
--- a/xen/include/xen/device_tree.h
+++ b/xen/include/xen/device_tree.h
@@ -243,8 +243,8 @@ extern const struct dt_device_node *dt_interrupt_controller;
struct dt_device_node * __init dt_find_interrupt_controller(const char *compat);
#define dt_prop_cmp(s1, s2) strcmp((s1), (s2))
-#define dt_node_cmp(s1, s2) strcmp((s1), (s2))
-#define dt_compat_cmp(s1, s2, l) strnicmp((s1), (s2), l)
+#define dt_node_cmp(s1, s2) strcasecmp((s1), (s2))
+#define dt_compat_cmp(s1, s2) strcasecmp((s1), (s2))
/* Default #address and #size cells */
#define DT_ROOT_NODE_ADDR_CELLS_DEFAULT 2