| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (C) 2014 Linaro Ltd. |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Author: Linus Walleij <linus.walleij@linaro.org> |
|---|
| 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 version 2, as |
|---|
| 8 | | - * published by the Free Software Foundation. |
|---|
| 9 | | - * |
|---|
| 10 | 6 | */ |
|---|
| 11 | 7 | #include <linux/init.h> |
|---|
| 12 | 8 | #include <linux/mfd/syscon.h> |
|---|
| .. | .. |
|---|
| 150 | 146 | versatile_reboot_type = (enum versatile_reboot)reboot_id->data; |
|---|
| 151 | 147 | |
|---|
| 152 | 148 | syscon_regmap = syscon_node_to_regmap(np); |
|---|
| 149 | + of_node_put(np); |
|---|
| 153 | 150 | if (IS_ERR(syscon_regmap)) |
|---|
| 154 | 151 | return PTR_ERR(syscon_regmap); |
|---|
| 155 | 152 | |
|---|