Message ID | 1358773378-4700-2-git-send-email-Julia.Lawall@lip6.fr (mailing list archive) |
---|---|
State | Rejected |
Headers | show |
diff --git a/drivers/sh/intc/of_intc.c b/drivers/sh/intc/of_intc.c index 1d5f47e..8dfded3 100644 --- a/drivers/sh/intc/of_intc.c +++ b/drivers/sh/intc/of_intc.c @@ -330,7 +330,7 @@ static int __init of_sh_intc_get_prio(struct device_node *np, reg_node = of_find_node_by_name(intc_node, node_name); - if (!intc_node) { + if (!reg_node) { pr_err("INTC prio register not found\n"); ret = -EINVAL; goto error; @@ -386,7 +386,7 @@ static int __init of_sh_intc_get_sense(struct device_node *np, reg_node = of_find_node_by_name(intc_node, node_name); - if (!intc_node) { + if (!reg_node) { pr_err("INTC senses register not found\n"); ret = -EINVAL; goto error;