.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2014 Mans Rullgard <mans@mansr.com> |
---|
3 | | - * |
---|
4 | | - * This program is free software; you can redistribute it and/or modify it |
---|
5 | | - * under the terms of the GNU General Public License as published by the |
---|
6 | | - * Free Software Foundation; either version 2 of the License, or (at your |
---|
7 | | - * option) any later version. |
---|
8 | 4 | */ |
---|
9 | 5 | |
---|
10 | 6 | #include <linux/init.h> |
---|
.. | .. |
---|
184 | 180 | |
---|
185 | 181 | irq = irq_of_parse_and_map(node, 0); |
---|
186 | 182 | if (!irq) |
---|
187 | | - panic("%s: failed to get IRQ", node->name); |
---|
| 183 | + panic("%pOFn: failed to get IRQ", node); |
---|
188 | 184 | |
---|
189 | 185 | err = of_address_to_resource(node, 0, &res); |
---|
190 | 186 | if (err) |
---|
191 | | - panic("%s: failed to get address", node->name); |
---|
| 187 | + panic("%pOFn: failed to get address", node); |
---|
192 | 188 | |
---|
193 | 189 | chip = kzalloc(sizeof(*chip), GFP_KERNEL); |
---|
194 | 190 | chip->ctl = res.start - baseres->start; |
---|
.. | .. |
---|
196 | 192 | |
---|
197 | 193 | dom = irq_domain_add_linear(node, 64, &irq_generic_chip_ops, chip); |
---|
198 | 194 | if (!dom) |
---|
199 | | - panic("%s: failed to create irqdomain", node->name); |
---|
| 195 | + panic("%pOFn: failed to create irqdomain", node); |
---|
200 | 196 | |
---|
201 | 197 | err = irq_alloc_domain_generic_chips(dom, 32, 2, node->name, |
---|
202 | 198 | handle_level_irq, 0, 0, 0); |
---|
203 | 199 | if (err) |
---|
204 | | - panic("%s: failed to allocate irqchip", node->name); |
---|
| 200 | + panic("%pOFn: failed to allocate irqchip", node); |
---|
205 | 201 | |
---|
206 | 202 | tangox_irq_domain_init(dom); |
---|
207 | 203 | |
---|
.. | .. |
---|
219 | 215 | |
---|
220 | 216 | base = of_iomap(node, 0); |
---|
221 | 217 | if (!base) |
---|
222 | | - panic("%s: of_iomap failed", node->name); |
---|
| 218 | + panic("%pOFn: of_iomap failed", node); |
---|
223 | 219 | |
---|
224 | 220 | of_address_to_resource(node, 0, &res); |
---|
225 | 221 | |
---|