| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Xilinx SLCR driver |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (c) 2011-2013 Xilinx Inc. |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or |
|---|
| 7 | | - * modify it under the terms of the GNU General Public License |
|---|
| 8 | | - * as published by the Free Software Foundation; either version |
|---|
| 9 | | - * 2 of the License, or (at your option) any later version. |
|---|
| 10 | | - * |
|---|
| 11 | | - * You should have received a copy of the GNU General Public |
|---|
| 12 | | - * License along with this program; if not, write to the Free |
|---|
| 13 | | - * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA |
|---|
| 14 | | - * 02139, USA. |
|---|
| 15 | 6 | */ |
|---|
| 16 | 7 | |
|---|
| 17 | 8 | #include <linux/io.h> |
|---|
| .. | .. |
|---|
| 222 | 213 | zynq_slcr_regmap = syscon_regmap_lookup_by_compatible("xlnx,zynq-slcr"); |
|---|
| 223 | 214 | if (IS_ERR(zynq_slcr_regmap)) { |
|---|
| 224 | 215 | pr_err("%s: failed to find zynq-slcr\n", __func__); |
|---|
| 216 | + of_node_put(np); |
|---|
| 225 | 217 | return -ENODEV; |
|---|
| 226 | 218 | } |
|---|
| 227 | 219 | |
|---|
| .. | .. |
|---|
| 233 | 225 | |
|---|
| 234 | 226 | register_restart_handler(&zynq_slcr_restart_nb); |
|---|
| 235 | 227 | |
|---|
| 236 | | - pr_info("%s mapped to %p\n", np->name, zynq_slcr_base); |
|---|
| 228 | + pr_info("%pOFn mapped to %p\n", np, zynq_slcr_base); |
|---|
| 237 | 229 | |
|---|
| 238 | 230 | of_node_put(np); |
|---|
| 239 | 231 | |
|---|