| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2015 Carlo Caione <carlo@endlessm.com> |
|---|
| 3 | 4 | * Copyright (C) 2017 Martin Blumenstingl <martin.blumenstingl@googlemail.com> |
|---|
| 4 | | - * |
|---|
| 5 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 6 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 7 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 8 | | - * (at your option) any later version. |
|---|
| 9 | | - * |
|---|
| 10 | | - * This program is distributed in the hope that it will be useful, but WITHOUT |
|---|
| 11 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|---|
| 12 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
|---|
| 13 | | - * more details. |
|---|
| 14 | | - * |
|---|
| 15 | 5 | */ |
|---|
| 16 | 6 | |
|---|
| 17 | 7 | #include <linux/delay.h> |
|---|
| .. | .. |
|---|
| 81 | 71 | } |
|---|
| 82 | 72 | |
|---|
| 83 | 73 | sram_base = of_iomap(node, 0); |
|---|
| 74 | + of_node_put(node); |
|---|
| 84 | 75 | if (!sram_base) { |
|---|
| 85 | 76 | pr_err("Couldn't map SRAM registers\n"); |
|---|
| 86 | 77 | return; |
|---|
| .. | .. |
|---|
| 101 | 92 | } |
|---|
| 102 | 93 | |
|---|
| 103 | 94 | scu_base = of_iomap(node, 0); |
|---|
| 95 | + of_node_put(node); |
|---|
| 104 | 96 | if (!scu_base) { |
|---|
| 105 | 97 | pr_err("Couldn't map SCU registers\n"); |
|---|
| 106 | 98 | return; |
|---|