| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright 2013 Emilio López |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Emilio López <emilio@elopez.com.ar> |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 7 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 8 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 9 | | - * (at your option) any later version. |
|---|
| 10 | | - * |
|---|
| 11 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 12 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 13 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 14 | | - * GNU General Public License for more details. |
|---|
| 15 | 6 | */ |
|---|
| 16 | 7 | |
|---|
| 17 | 8 | #include <linux/clk.h> |
|---|
| 18 | 9 | #include <linux/clk-provider.h> |
|---|
| 10 | +#include <linux/io.h> |
|---|
| 19 | 11 | #include <linux/of_address.h> |
|---|
| 20 | 12 | #include <linux/platform_device.h> |
|---|
| 21 | 13 | #include <linux/slab.h> |
|---|
| .. | .. |
|---|
| 140 | 132 | |
|---|
| 141 | 133 | reg = of_io_request_and_map(node, 0, of_node_full_name(node)); |
|---|
| 142 | 134 | if (IS_ERR(reg)) { |
|---|
| 143 | | - pr_err("Could not get registers for mod0-clk: %s\n", |
|---|
| 144 | | - node->name); |
|---|
| 135 | + pr_err("Could not get registers for mod0-clk: %pOFn\n", |
|---|
| 136 | + node); |
|---|
| 145 | 137 | return; |
|---|
| 146 | 138 | } |
|---|
| 147 | 139 | |
|---|
| .. | .. |
|---|
| 306 | 298 | |
|---|
| 307 | 299 | reg = of_io_request_and_map(node, 0, of_node_full_name(node)); |
|---|
| 308 | 300 | if (IS_ERR(reg)) { |
|---|
| 309 | | - pr_err("Couldn't map the %s clock registers\n", node->name); |
|---|
| 301 | + pr_err("Couldn't map the %pOFn clock registers\n", node); |
|---|
| 310 | 302 | return; |
|---|
| 311 | 303 | } |
|---|
| 312 | 304 | |
|---|