of/flattree: fix of_flat_dt_is_compatible() to match the full compatible string
[deliverable/linux.git] / drivers / of / fdt.c
index d61fda836e03bacfd7747e3e49f02ae093dc7603..dc876cbbd9dd7d6906a02b3f9c0daafe5ae0d53f 100644 (file)
@@ -169,7 +169,7 @@ int __init of_flat_dt_is_compatible(unsigned long node, const char *compat)
        if (cp == NULL)
                return 0;
        while (cplen > 0) {
-               if (strncasecmp(cp, compat, strlen(compat)) == 0)
+               if (of_compat_cmp(cp, compat, strlen(compat)) == 0)
                        return 1;
                l = strlen(cp) + 1;
                cp += l;
This page took 0.026837 seconds and 5 git commands to generate.