Skip to content

Commit f88e1ae

Browse files
committed
dt/device: Fix auxdata matching to handle entries without a name override
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 <[email protected]>
1 parent dc47ce9 commit f88e1ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/of/platform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ static const struct of_dev_auxdata *of_dev_lookup(const struct of_dev_auxdata *l
314314
if (!lookup)
315315
return NULL;
316316

317-
for(; lookup->name != NULL; lookup++) {
317+
for(; lookup->compatible != NULL; lookup++) {
318318
if (!of_device_is_compatible(np, lookup->compatible))
319319
continue;
320320
if (of_address_to_resource(np, 0, &res))

0 commit comments

Comments
 (0)