Commit 87ca4494 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] ppc64: set err to -ENODEV when a new node doesn't have "interrupt" property.

From: Linda Xie <lxiep@us.ibm.com>

set err to -ENODEV when a new node doesn't have "interrupt" property.
parent fb9d4325
...@@ -2988,8 +2988,10 @@ static int of_finish_dynamic_node(struct device_node *node) ...@@ -2988,8 +2988,10 @@ static int of_finish_dynamic_node(struct device_node *node)
/* now do the work of finish_node_interrupts */ /* now do the work of finish_node_interrupts */
ints = (unsigned int *) get_property(node, "interrupts", &intlen); ints = (unsigned int *) get_property(node, "interrupts", &intlen);
if (!ints) if (!ints) {
err = -ENODEV;
goto out; goto out;
}
intrcells = prom_n_intr_cells(node); intrcells = prom_n_intr_cells(node);
intlen /= intrcells * sizeof(unsigned int); intlen /= intrcells * sizeof(unsigned int);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment