hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/power/reset/arm-versatile-reboot.c
....@@ -1,12 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2014 Linaro Ltd.
34 *
45 * 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
- *
106 */
117 #include <linux/init.h>
128 #include <linux/mfd/syscon.h>
....@@ -150,6 +146,7 @@
150146 versatile_reboot_type = (enum versatile_reboot)reboot_id->data;
151147
152148 syscon_regmap = syscon_node_to_regmap(np);
149
+ of_node_put(np);
153150 if (IS_ERR(syscon_regmap))
154151 return PTR_ERR(syscon_regmap);
155152