The C-Sky platform code is not a clock provider, and just needs to call of_clk_init(). Hence it can include <linux/of_clk.h> instead of <linux/clk-provider.h>.
Unified · Split
| @@ -1,8 +1,8 @@ | |||
| 1 | // SPDX-License-Identifier: GPL-2.0 | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. | 2 | // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. |
| 3 | 3 | ||
| 4 | #include <linux/clk-provider.h> | ||
| 5 | #include <linux/clocksource.h> | 4 | #include <linux/clocksource.h> |
| 5 | #include <linux/of_clk.h> | ||
| 6 | 6 | ||
| 7 | void __init time_init(void) | 7 | void __init time_init(void) |
| 8 | { | 8 | { |