Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

dt/device: Fix auxdata matching to handle entries without a name over…

…ride

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>
  • Loading branch information...
commit f88e1ae8acb8affac29034ed79d4fff95ac8c29d 1 parent dc47ce9
Grant Likely authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  drivers/of/platform.c
2  drivers/of/platform.c
View
@@ -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->name != NULL; lookup++) {
+ for(; lookup->compatible != NULL; lookup++) {
if (!of_device_is_compatible(np, lookup->compatible))
continue;
if (of_address_to_resource(np, 0, &res))
Please sign in to comment.
Something went wrong with that request. Please try again.