.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Marvell PXA family clocks |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (C) 2014 Robert Jarzmik |
---|
5 | 6 | * |
---|
6 | 7 | * 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 | | - * |
---|
12 | 8 | */ |
---|
13 | 9 | #include <linux/clk.h> |
---|
14 | 10 | #include <linux/clk-provider.h> |
---|
15 | 11 | #include <linux/clkdev.h> |
---|
| 12 | +#include <linux/io.h> |
---|
16 | 13 | #include <linux/of.h> |
---|
17 | 14 | |
---|
18 | 15 | #include <dt-bindings/clock/pxa-clock.h> |
---|
.. | .. |
---|
70 | 67 | return clk_fixed_factor_ops.recalc_rate(&fix->hw, parent_rate); |
---|
71 | 68 | } |
---|
72 | 69 | |
---|
73 | | -static struct clk_ops cken_rate_ops = { |
---|
| 70 | +static const struct clk_ops cken_rate_ops = { |
---|
74 | 71 | .recalc_rate = cken_recalc_rate, |
---|
75 | 72 | }; |
---|
76 | 73 | |
---|
.. | .. |
---|
83 | 80 | return pclk->is_in_low_power() ? 0 : 1; |
---|
84 | 81 | } |
---|
85 | 82 | |
---|
86 | | -static struct clk_ops cken_mux_ops = { |
---|
| 83 | +static const struct clk_ops cken_mux_ops = { |
---|
87 | 84 | .get_parent = cken_get_parent, |
---|
88 | 85 | .set_parent = dummy_clk_set_parent, |
---|
89 | 86 | }; |
---|