forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/drivers/clk/pxa/clk-pxa.c
....@@ -1,18 +1,15 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Marvell PXA family clocks
34 *
45 * Copyright (C) 2014 Robert Jarzmik
56 *
67 * Common clock code for PXA clocks ("CKEN" type clocks + DT)
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 as published by
10
- * the Free Software Foundation; version 2 of the License.
11
- *
128 */
139 #include <linux/clk.h>
1410 #include <linux/clk-provider.h>
1511 #include <linux/clkdev.h>
12
+#include <linux/io.h>
1613 #include <linux/of.h>
1714
1815 #include <dt-bindings/clock/pxa-clock.h>
....@@ -70,7 +67,7 @@
7067 return clk_fixed_factor_ops.recalc_rate(&fix->hw, parent_rate);
7168 }
7269
73
-static struct clk_ops cken_rate_ops = {
70
+static const struct clk_ops cken_rate_ops = {
7471 .recalc_rate = cken_recalc_rate,
7572 };
7673
....@@ -83,7 +80,7 @@
8380 return pclk->is_in_low_power() ? 0 : 1;
8481 }
8582
86
-static struct clk_ops cken_mux_ops = {
83
+static const struct clk_ops cken_mux_ops = {
8784 .get_parent = cken_get_parent,
8885 .set_parent = dummy_clk_set_parent,
8986 };