[POWERPC] Use strcasecmp() rather than strncasecmp() when determining device node...
authorScott Wood <scottwood@freescale.com>
Mon, 20 Aug 2007 16:36:59 +0000 (02:36 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 22 Aug 2007 05:21:47 +0000 (15:21 +1000)
commit804ace8881d211ac448082e871dd312132393049
treef1207f6b942cc6cb05ef916152101b3ce07a1a05
parent12cdac34c6e90d887de23ab9747185731cba254a
[POWERPC] Use strcasecmp() rather than strncasecmp() when determining device node compatibility

The current code assumes "foo-bar" must always be compatible with a node
compatible with "foo", which breaks device trees where this is not so.

The "case" part is also wrong according to Open Firmware, but it's more
likely to have drivers and/or device trees depending on it, and thus
needs to be handled more carefully.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
include/asm-powerpc/prom.h