forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-20 ea08eeccae9297f7aabd2ef7f0c2517ac4549acc
kernel/drivers/clk/hisilicon/clk-hi6220.c
....@@ -1,13 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Hisilicon Hi6220 clock driver
34 *
45 * Copyright (c) 2015 Hisilicon Limited.
56 *
67 * Author: Bintian Wang <bintian.wang@huawei.com>
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License version 2 as
10
- * published by the Free Software Foundation.
118 */
129
1310 #include <linux/kernel.h>
....@@ -89,7 +86,8 @@
8986 hisi_clk_register_gate_sep(hi6220_separated_gate_clks_ao,
9087 ARRAY_SIZE(hi6220_separated_gate_clks_ao), clk_data_ao);
9188 }
92
-CLK_OF_DECLARE(hi6220_clk_ao, "hisilicon,hi6220-aoctrl", hi6220_clk_ao_init);
89
+/* Allow reset driver to probe as well */
90
+CLK_OF_DECLARE_DRIVER(hi6220_clk_ao, "hisilicon,hi6220-aoctrl", hi6220_clk_ao_init);
9391
9492
9593 /* clocks in sysctrl */