diff options
author | Grant Likely <[email protected]> | 2010-03-18 07:30:31 -0600 |
---|---|---|
committer | Grant Likely <[email protected]> | 2010-03-18 07:30:31 -0600 |
commit | 1976152fd8e706135deed6cf333e347c08416056 (patch) | |
tree | c6957ba400864cedef592969b520bbb21510e3c1 /net/lapb/lapb_in.c | |
parent | acc6a0935e5958ad1a1b99a1c6f44a52264bedf0 (diff) |
of: Fix comparison of "compatible" properties
Commit 7c7b60cb87547b1664a4385c187f029bf514a737
"of: put default string compare and #a/s-cell values into common header"
Breaks various things on powerpc due to using strncasecmp instead of
strcasecmp for comparing against "compatible" strings.
This causes things like the 4xx PCI code to fail miserably due to the
partial matches in code like this:
for_each_compatible_node(np, NULL, "ibm,plb-pcix")
ppc4xx_probe_pcix_bridge(np);
for_each_compatible_node(np, NULL, "ibm,plb-pci")
ppc4xx_probe_pci_bridge(np);
It's not quite right to do partial name match. Entries in a compatible
list are meant to be matched whole. If a device is compatible with both
"foo" and "foo1", then the device should have both strings in its
"compatible" property.
This patch reverts powerpc and microblaze us to use strcasecmp.
Signed-off-by: Benjamin Herrenschmidt <[email protected]>
(for patch description)
Signed-off-by: Grant Likely <[email protected]>
Acked-by: David S. Miller <[email protected]>
Acked-by: Michal Simek <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions