X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fof%2Fplatform.c;h=63b3ec48c203a43f3d8a9d395e459d765fd7f7b0;hb=8466609ff96439973d04466ccc9d909c16d16977;hp=cbd5d701c7e086f632f74bf8bec29fe1a23e6a55;hpb=06d381484fe8fb1ba2996c22e89595a273e3634c;p=pandora-kernel.git 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))