aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org> 2012-01-02 12:34:03 -0800
committerGravatar Linus Torvalds <torvalds@linux-foundation.org> 2012-01-02 12:34:03 -0800
commit115e8e705e4be071b9e06ff72578e3b603f2ba65 (patch)
tree8ef96f62ed5239442cd55ad54ea5c97b0441e613 /drivers
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net (diff)
parentdt/device: Fix auxdata matching to handle entries without a name override (diff)
downloadlinux-115e8e705e4be071b9e06ff72578e3b603f2ba65.tar.gz
linux-115e8e705e4be071b9e06ff72578e3b603f2ba65.tar.bz2
linux-115e8e705e4be071b9e06ff72578e3b603f2ba65.zip
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
Diffstat (limited to 'drivers')
-rw-r--r--drivers/of/platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/platform.c b/drivers/of/platform.c
index cbd5d701c7e0..63b3ec48c203 100644
--- 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->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))