Commit 12129fea authored by Paul Mundt's avatar Paul Mundt

sh: intc: Tidy up loglevel mismatches.

The printk loglevels are all over the place, make them a bit more
coherent, and add some registration notification while we're at it.
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 0ded7542
...@@ -860,6 +860,9 @@ int __init register_intc_controller(struct intc_desc *desc) ...@@ -860,6 +860,9 @@ int __init register_intc_controller(struct intc_desc *desc)
struct intc_desc_int *d; struct intc_desc_int *d;
struct resource *res; struct resource *res;
pr_info("intc: Registered controller '%s' with %u IRQs\n",
desc->name, hw->nr_vectors);
d = kzalloc(sizeof(*d), GFP_NOWAIT); d = kzalloc(sizeof(*d), GFP_NOWAIT);
if (!d) if (!d)
goto err0; goto err0;
...@@ -974,7 +977,7 @@ int __init register_intc_controller(struct intc_desc *desc) ...@@ -974,7 +977,7 @@ int __init register_intc_controller(struct intc_desc *desc)
irq_desc = irq_to_desc_alloc_node(irq, numa_node_id()); irq_desc = irq_to_desc_alloc_node(irq, numa_node_id());
if (unlikely(!irq_desc)) { if (unlikely(!irq_desc)) {
pr_info("can't get irq_desc for %d\n", irq); pr_err("can't get irq_desc for %d\n", irq);
continue; continue;
} }
...@@ -994,7 +997,7 @@ int __init register_intc_controller(struct intc_desc *desc) ...@@ -994,7 +997,7 @@ int __init register_intc_controller(struct intc_desc *desc)
*/ */
irq_desc = irq_to_desc_alloc_node(irq2, numa_node_id()); irq_desc = irq_to_desc_alloc_node(irq2, numa_node_id());
if (unlikely(!irq_desc)) { if (unlikely(!irq_desc)) {
pr_info("can't get irq_desc for %d\n", irq2); pr_err("can't get irq_desc for %d\n", irq2);
continue; continue;
} }
...@@ -1121,7 +1124,7 @@ static int __init register_intc_sysdevs(void) ...@@ -1121,7 +1124,7 @@ static int __init register_intc_sysdevs(void)
} }
if (error) if (error)
pr_warning("intc: sysdev registration error\n"); pr_err("intc: sysdev registration error\n");
return error; return error;
} }
...@@ -1154,7 +1157,7 @@ unsigned int create_irq_nr(unsigned int irq_want, int node) ...@@ -1154,7 +1157,7 @@ unsigned int create_irq_nr(unsigned int irq_want, int node)
desc = irq_to_desc_alloc_node(new, node); desc = irq_to_desc_alloc_node(new, node);
if (unlikely(!desc)) { if (unlikely(!desc)) {
pr_info("can't get irq_desc for %d\n", new); pr_err("can't get irq_desc for %d\n", new);
goto out_unlock; goto out_unlock;
} }
......
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