Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

irqchhip: Convert to using %pOFn instead of device_node.name

In preparation to remove the node name pointer from struct device_node,
convert printf users to use the %pOFn format specifier.

Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>

authored by

Yangtao Li and committed by
Marc Zyngier
f9c75bca ed01edc0

+11 -11
+3 -3
drivers/irqchip/irq-mscc-ocelot.c
··· 72 72 domain = irq_domain_add_linear(node, OCELOT_NR_IRQ, 73 73 &irq_generic_chip_ops, NULL); 74 74 if (!domain) { 75 - pr_err("%s: unable to add irq domain\n", node->name); 75 + pr_err("%pOFn: unable to add irq domain\n", node); 76 76 return -ENOMEM; 77 77 } 78 78 ··· 80 80 "icpu", handle_level_irq, 81 81 0, 0, 0); 82 82 if (ret) { 83 - pr_err("%s: unable to alloc irq domain gc\n", node->name); 83 + pr_err("%pOFn: unable to alloc irq domain gc\n", node); 84 84 goto err_domain_remove; 85 85 } 86 86 87 87 gc = irq_get_domain_generic_chip(domain, 0); 88 88 gc->reg_base = of_iomap(node, 0); 89 89 if (!gc->reg_base) { 90 - pr_err("%s: unable to map resource\n", node->name); 90 + pr_err("%pOFn: unable to map resource\n", node); 91 91 ret = -ENOMEM; 92 92 goto err_gc_free; 93 93 }
+3 -3
drivers/irqchip/irq-stm32-exti.c
··· 678 678 domain = irq_domain_add_linear(node, drv_data->bank_nr * IRQS_PER_BANK, 679 679 &irq_exti_domain_ops, NULL); 680 680 if (!domain) { 681 - pr_err("%s: Could not register interrupt domain.\n", 682 - node->name); 681 + pr_err("%pOFn: Could not register interrupt domain.\n", 682 + node); 683 683 ret = -ENOMEM; 684 684 goto out_unmap; 685 685 } ··· 768 768 host_data); 769 769 770 770 if (!domain) { 771 - pr_err("%s: Could not register exti domain.\n", node->name); 771 + pr_err("%pOFn: Could not register exti domain.\n", node); 772 772 ret = -ENOMEM; 773 773 goto out_unmap; 774 774 }
+5 -5
drivers/irqchip/irq-tango.c
··· 184 184 185 185 irq = irq_of_parse_and_map(node, 0); 186 186 if (!irq) 187 - panic("%s: failed to get IRQ", node->name); 187 + panic("%pOFn: failed to get IRQ", node); 188 188 189 189 err = of_address_to_resource(node, 0, &res); 190 190 if (err) 191 - panic("%s: failed to get address", node->name); 191 + panic("%pOFn: failed to get address", node); 192 192 193 193 chip = kzalloc(sizeof(*chip), GFP_KERNEL); 194 194 chip->ctl = res.start - baseres->start; ··· 196 196 197 197 dom = irq_domain_add_linear(node, 64, &irq_generic_chip_ops, chip); 198 198 if (!dom) 199 - panic("%s: failed to create irqdomain", node->name); 199 + panic("%pOFn: failed to create irqdomain", node); 200 200 201 201 err = irq_alloc_domain_generic_chips(dom, 32, 2, node->name, 202 202 handle_level_irq, 0, 0, 0); 203 203 if (err) 204 - panic("%s: failed to allocate irqchip", node->name); 204 + panic("%pOFn: failed to allocate irqchip", node); 205 205 206 206 tangox_irq_domain_init(dom); 207 207 ··· 219 219 220 220 base = of_iomap(node, 0); 221 221 if (!base) 222 - panic("%s: of_iomap failed", node->name); 222 + panic("%pOFn: of_iomap failed", node); 223 223 224 224 of_address_to_resource(node, 0, &res); 225 225