From: Lee Jones Date: Thu, 5 Jul 2012 14:15:36 +0000 (+0100) Subject: of: address: Don't fail a lookup just because a node has no reg property X-Git-Tag: v3.5-rc7~27^2~2^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84774e615749acfce6b2f679b95924dffb5f5de1;p=pandora-kernel.git of: address: Don't fail a lookup just because a node has no reg property Sometimes it doesn't make any sense for a node to have an address. In this case device lookup will always be unsuccessful because we currently assume every node will have a reg property. This patch changes the semantics so that the resource address and the lookup address will only be compared if one exists. Things like AUXDATA() rely on of_dev_lookup to return the lookup entry of a particular device in order to do things like apply platform_data to a device. However, this is currently broken for nodes which do not have a reg property, meaning that platform_data can not be passed in those cases. Acked-by: Rob Herring Acked-by: Arnd Bergmann Signed-off-by: Lee Jones --- Reading git-diff-tree failed