| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Abilis Systems interrupt controller driver |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) Abilis Systems 2012 |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * 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 |
|---|
| 20 | 8 | */ |
|---|
| 21 | 9 | |
|---|
| 22 | 10 | #include <linux/interrupt.h> |
|---|
| .. | .. |
|---|
| 115 | 103 | void __iomem *reg_base; |
|---|
| 116 | 104 | |
|---|
| 117 | 105 | 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); |
|---|
| 120 | 108 | return -EINVAL; |
|---|
| 121 | 109 | } |
|---|
| 122 | 110 | |
|---|
| 123 | 111 | 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); |
|---|
| 126 | 114 | return -EBUSY; |
|---|
| 127 | 115 | } |
|---|
| 128 | 116 | |
|---|
| 129 | 117 | reg_base = ioremap(mem.start, resource_size(&mem)); |
|---|
| 130 | 118 | if (!reg_base) { |
|---|
| 131 | 119 | ret = -EBUSY; |
|---|
| 132 | | - pr_err("%s: ioremap failed.\n", ictl->name); |
|---|
| 120 | + pr_err("%pOFn: ioremap failed.\n", ictl); |
|---|
| 133 | 121 | goto ioremap_fail; |
|---|
| 134 | 122 | } |
|---|
| 135 | 123 | |
|---|
| .. | .. |
|---|
| 137 | 125 | &irq_generic_chip_ops, NULL); |
|---|
| 138 | 126 | if (!domain) { |
|---|
| 139 | 127 | 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); |
|---|
| 142 | 130 | goto irq_domain_add_fail; |
|---|
| 143 | 131 | } |
|---|
| 144 | 132 | |
|---|
| .. | .. |
|---|
| 147 | 135 | IRQ_NOREQUEST, IRQ_NOPROBE, |
|---|
| 148 | 136 | IRQ_GC_INIT_MASK_CACHE); |
|---|
| 149 | 137 | 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); |
|---|
| 152 | 140 | goto gc_alloc_fail; |
|---|
| 153 | 141 | } |
|---|
| 154 | 142 | |
|---|