hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/clk/rockchip/softrst.c
....@@ -1,16 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (c) 2014 MundoReader S.L.
34 * Author: Heiko Stuebner <heiko@sntech.de>
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,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
145 */
156
167 #include <linux/slab.h>
....@@ -86,9 +77,9 @@
8677 .deassert = rockchip_softrst_deassert,
8778 };
8879
89
-void __init rockchip_register_softrst(struct device_node *np,
90
- unsigned int num_regs,
91
- void __iomem *base, u8 flags)
80
+void rockchip_register_softrst(struct device_node *np,
81
+ unsigned int num_regs,
82
+ void __iomem *base, u8 flags)
9283 {
9384 struct rockchip_softrst *softrst;
9485 int ret;
....@@ -116,3 +107,4 @@
116107 kfree(softrst);
117108 }
118109 };
110
+EXPORT_SYMBOL_GPL(rockchip_register_softrst);