summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/sch56xx-common.c
diff options
context:
space:
mode:
authorRob Herring <rob.herring@calxeda.com>2011-09-20 20:02:54 +0200
committerRob Herring <rob.herring@calxeda.com>2011-10-05 14:39:37 +0200
commitdc9372808412edbc653a675a526c2ee6c0c14a91 (patch)
tree5c6a2252c1de2720e7783a48f5b144003176cf65 /drivers/hwmon/sch56xx-common.c
parentMAINTAINERS: update devicetree maintainers (diff)
downloadlinux-dc9372808412edbc653a675a526c2ee6c0c14a91.tar.xz
linux-dc9372808412edbc653a675a526c2ee6c0c14a91.zip
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 <rob.herring@calxeda.com> Cc: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/hwmon/sch56xx-common.c')
0 files changed, 0 insertions, 0 deletions