Skip to content

Commit 115e8e7

Browse files
committed
Merge branch 'devicetree/merge' of git://git.secretlab.ca/git/linux-2.6
* 'devicetree/merge' of git://git.secretlab.ca/git/linux-2.6: dt/device: Fix auxdata matching to handle entries without a name override
2 parents 733bbb7 + f88e1ae commit 115e8e7

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)