From: Rob Herring Date: Tue, 20 Sep 2011 18:02:54 +0000 (-0500) Subject: of/irq: of_irq_find_parent: check for parent equal to child X-Git-Tag: v3.2-rc1~150^2~6^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc9372808412edbc653a675a526c2ee6c0c14a91;p=pandora-kernel.git of/irq: of_irq_find_parent: check for parent equal to child An interrupt controller may often implicitly inherit itself from a parent node when in fact the controller is the interrupt root controller. Guard against the case of child == parent and return NULL in this case. This can also be fixed by adding an explicit "interrupt-parent;" to a root interrupt controller node. Based on code from Grant Likely. Signed-off-by: Rob Herring Cc: Grant Likely --- Reading git-diff-tree failed