From: Stuart Yoder Date: Fri, 23 Jul 2010 18:42:44 +0000 (-0500) Subject: of/flattree: fix of_flat_dt_is_compatible() to match the full compatible string X-Git-Tag: v2.6.36-rc1~543^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=883c2cfc8bcc0fd00c5d9f596fb8870f481b5bda;p=pandora-kernel.git of/flattree: fix of_flat_dt_is_compatible() to match the full compatible string With the current string comparison, a device tree compatible of "foo-bar" would match as compatible with a driver looking for "foo". This patch fixes the function to use the of_compat_cmp() macro so that it does the right thing on all platforms (If sparc ever uses this code, it will still want the strncasecmp() behaviour). Signed-off-by: Stuart Yoder Signed-off-by: Grant Likely --- Reading git-diff-tree failed