hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/irqchip/irq-orion.c
....@@ -64,14 +64,14 @@
6464 num_chips * ORION_IRQS_PER_CHIP,
6565 &irq_generic_chip_ops, NULL);
6666 if (!orion_irq_domain)
67
- panic("%s: unable to add irq domain\n", np->name);
67
+ panic("%pOFn: unable to add irq domain\n", np);
6868
6969 ret = irq_alloc_domain_generic_chips(orion_irq_domain,
70
- ORION_IRQS_PER_CHIP, 1, np->name,
70
+ ORION_IRQS_PER_CHIP, 1, np->full_name,
7171 handle_level_irq, clr, 0,
7272 IRQ_GC_INIT_MASK_CACHE);
7373 if (ret)
74
- panic("%s: unable to alloc irq domain gc\n", np->name);
74
+ panic("%pOFn: unable to alloc irq domain gc\n", np);
7575
7676 for (n = 0, base = 0; n < num_chips; n++, base += ORION_IRQS_PER_CHIP) {
7777 struct irq_chip_generic *gc =
....@@ -80,12 +80,12 @@
8080 of_address_to_resource(np, n, &r);
8181
8282 if (!request_mem_region(r.start, resource_size(&r), np->name))
83
- panic("%s: unable to request mem region %d",
84
- np->name, n);
83
+ panic("%pOFn: unable to request mem region %d",
84
+ np, n);
8585
8686 gc->reg_base = ioremap(r.start, resource_size(&r));
8787 if (!gc->reg_base)
88
- panic("%s: unable to map resource %d", np->name, n);
88
+ panic("%pOFn: unable to map resource %d", np, n);
8989
9090 gc->chip_types[0].regs.mask = ORION_IRQ_MASK;
9191 gc->chip_types[0].chip.irq_mask = irq_gc_mask_clr_bit;
....@@ -150,20 +150,20 @@
150150 domain = irq_domain_add_linear(np, nrirqs,
151151 &irq_generic_chip_ops, NULL);
152152 if (!domain) {
153
- pr_err("%s: unable to add irq domain\n", np->name);
153
+ pr_err("%pOFn: unable to add irq domain\n", np);
154154 return -ENOMEM;
155155 }
156156
157157 ret = irq_alloc_domain_generic_chips(domain, nrirqs, 1, np->name,
158158 handle_edge_irq, clr, 0, IRQ_GC_INIT_MASK_CACHE);
159159 if (ret) {
160
- pr_err("%s: unable to alloc irq domain gc\n", np->name);
160
+ pr_err("%pOFn: unable to alloc irq domain gc\n", np);
161161 return ret;
162162 }
163163
164164 ret = of_address_to_resource(np, 0, &r);
165165 if (ret) {
166
- pr_err("%s: unable to get resource\n", np->name);
166
+ pr_err("%pOFn: unable to get resource\n", np);
167167 return ret;
168168 }
169169
....@@ -175,14 +175,14 @@
175175 /* Map the parent interrupt for the chained handler */
176176 irq = irq_of_parse_and_map(np, 0);
177177 if (irq <= 0) {
178
- pr_err("%s: unable to parse irq\n", np->name);
178
+ pr_err("%pOFn: unable to parse irq\n", np);
179179 return -EINVAL;
180180 }
181181
182182 gc = irq_get_domain_generic_chip(domain, 0);
183183 gc->reg_base = ioremap(r.start, resource_size(&r));
184184 if (!gc->reg_base) {
185
- pr_err("%s: unable to map resource\n", np->name);
185
+ pr_err("%pOFn: unable to map resource\n", np);
186186 return -ENOMEM;
187187 }
188188