projects
/
platform
/
kernel
/
linux-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc47ce9
)
dt/device: Fix auxdata matching to handle entries without a name override
author
Grant Likely
<grant.likely@secretlab.ca>
Mon, 12 Dec 2011 16:26:00 +0000
(09:26 -0700)
committer
Grant Likely
<grant.likely@secretlab.ca>
Mon, 12 Dec 2011 21:41:45 +0000
(14:41 -0700)
There is no requirement to override name entries in auxdata. Fix the
entry matching to use .compatible instead of .name to find the end of the
list.
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/of/platform.c
patch
|
blob
|
history
diff --git
a/drivers/of/platform.c
b/drivers/of/platform.c
index
cbd5d70
..
63b3ec4
100644
(file)
--- a/
drivers/of/platform.c
+++ b/
drivers/of/platform.c
@@
-314,7
+314,7
@@
static const struct of_dev_auxdata *of_dev_lookup(const struct of_dev_auxdata *l
if (!lookup)
return NULL;
- for(; lookup->
nam
e != NULL; lookup++) {
+ for(; lookup->
compatibl
e != NULL; lookup++) {
if (!of_device_is_compatible(np, lookup->compatible))
continue;
if (of_address_to_resource(np, 0, &res))