forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/irqchip/irq-tango.c
....@@ -1,10 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * 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.
84 */
95
106 #include <linux/init.h>
....@@ -184,11 +180,11 @@
184180
185181 irq = irq_of_parse_and_map(node, 0);
186182 if (!irq)
187
- panic("%s: failed to get IRQ", node->name);
183
+ panic("%pOFn: failed to get IRQ", node);
188184
189185 err = of_address_to_resource(node, 0, &res);
190186 if (err)
191
- panic("%s: failed to get address", node->name);
187
+ panic("%pOFn: failed to get address", node);
192188
193189 chip = kzalloc(sizeof(*chip), GFP_KERNEL);
194190 chip->ctl = res.start - baseres->start;
....@@ -196,12 +192,12 @@
196192
197193 dom = irq_domain_add_linear(node, 64, &irq_generic_chip_ops, chip);
198194 if (!dom)
199
- panic("%s: failed to create irqdomain", node->name);
195
+ panic("%pOFn: failed to create irqdomain", node);
200196
201197 err = irq_alloc_domain_generic_chips(dom, 32, 2, node->name,
202198 handle_level_irq, 0, 0, 0);
203199 if (err)
204
- panic("%s: failed to allocate irqchip", node->name);
200
+ panic("%pOFn: failed to allocate irqchip", node);
205201
206202 tangox_irq_domain_init(dom);
207203
....@@ -219,7 +215,7 @@
219215
220216 base = of_iomap(node, 0);
221217 if (!base)
222
- panic("%s: of_iomap failed", node->name);
218
+ panic("%pOFn: of_iomap failed", node);
223219
224220 of_address_to_resource(node, 0, &res);
225221