hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/nios2/platform/platform.c
....@@ -15,6 +15,12 @@
1515 #include <linux/slab.h>
1616 #include <linux/sys_soc.h>
1717 #include <linux/io.h>
18
+#include <linux/clk-provider.h>
19
+
20
+static const struct of_device_id clk_match[] __initconst = {
21
+ { .compatible = "fixed-clock", .data = of_fixed_clk_setup, },
22
+ {}
23
+};
1824
1925 static int __init nios2_soc_device_init(void)
2026 {
....@@ -38,6 +44,8 @@
3844 }
3945 }
4046
47
+ of_clk_init(clk_match);
48
+
4149 return 0;
4250 }
4351