hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/irqchip/irq-tb10x.c
....@@ -1,22 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Abilis Systems interrupt controller driver
34 *
45 * Copyright (C) Abilis Systems 2012
56 *
67 * Author: Christian Ruppert <christian.ruppert@abilis.com>
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License version 2 as
10
- * published by the Free Software Foundation.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU General Public License
18
- * along with this program; if not, write to the Free Software
19
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
208 */
219
2210 #include <linux/interrupt.h>
....@@ -115,21 +103,21 @@
115103 void __iomem *reg_base;
116104
117105 if (of_address_to_resource(ictl, 0, &mem)) {
118
- pr_err("%s: No registers declared in DeviceTree.\n",
119
- ictl->name);
106
+ pr_err("%pOFn: No registers declared in DeviceTree.\n",
107
+ ictl);
120108 return -EINVAL;
121109 }
122110
123111 if (!request_mem_region(mem.start, resource_size(&mem),
124
- ictl->name)) {
125
- pr_err("%s: Request mem region failed.\n", ictl->name);
112
+ ictl->full_name)) {
113
+ pr_err("%pOFn: Request mem region failed.\n", ictl);
126114 return -EBUSY;
127115 }
128116
129117 reg_base = ioremap(mem.start, resource_size(&mem));
130118 if (!reg_base) {
131119 ret = -EBUSY;
132
- pr_err("%s: ioremap failed.\n", ictl->name);
120
+ pr_err("%pOFn: ioremap failed.\n", ictl);
133121 goto ioremap_fail;
134122 }
135123
....@@ -137,8 +125,8 @@
137125 &irq_generic_chip_ops, NULL);
138126 if (!domain) {
139127 ret = -ENOMEM;
140
- pr_err("%s: Could not register interrupt domain.\n",
141
- ictl->name);
128
+ pr_err("%pOFn: Could not register interrupt domain.\n",
129
+ ictl);
142130 goto irq_domain_add_fail;
143131 }
144132
....@@ -147,8 +135,8 @@
147135 IRQ_NOREQUEST, IRQ_NOPROBE,
148136 IRQ_GC_INIT_MASK_CACHE);
149137 if (ret) {
150
- pr_err("%s: Could not allocate generic interrupt chip.\n",
151
- ictl->name);
138
+ pr_err("%pOFn: Could not allocate generic interrupt chip.\n",
139
+ ictl);
152140 goto gc_alloc_fail;
153141 }
154142