Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 275878
b: refs/heads/master
c: b4bbb02
h: refs/heads/master
v: v3
  • Loading branch information
Linus Torvalds committed Nov 22, 2011
1 parent 91eb16b commit 2f4afdc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2db1125d51c4752ca68d1f015347b6f5b55e9fca
refs/heads/master: b4bbb02934e4511d9083f15c23e90703482e84ad
14 changes: 7 additions & 7 deletions trunk/drivers/of/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,27 +60,27 @@ EXPORT_SYMBOL_GPL(irq_of_parse_and_map);
*/
struct device_node *of_irq_find_parent(struct device_node *child)
{
struct device_node *p, *c = child;
struct device_node *p;
const __be32 *parp;

if (!of_node_get(c))
if (!of_node_get(child))
return NULL;

do {
parp = of_get_property(c, "interrupt-parent", NULL);
parp = of_get_property(child, "interrupt-parent", NULL);
if (parp == NULL)
p = of_get_parent(c);
p = of_get_parent(child);
else {
if (of_irq_workarounds & OF_IMAP_NO_PHANDLE)
p = of_node_get(of_irq_dflt_pic);
else
p = of_find_node_by_phandle(be32_to_cpup(parp));
}
of_node_put(c);
c = p;
of_node_put(child);
child = p;
} while (p && of_get_property(p, "#interrupt-cells", NULL) == NULL);

return (p == child) ? NULL : p;
return p;
}

/**
Expand Down

0 comments on commit 2f4afdc

Please sign in to comment.