kernel/arch/nios2/platform/platform.c
.. .. @@ -15,6 +15,12 @@ 15 15 #include <linux/slab.h> 16 16 #include <linux/sys_soc.h> 17 17 #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 +};18 24 19 25 static int __init nios2_soc_device_init(void) 20 26 { .. .. @@ -38,6 +44,8 @@ 38 44 } 39 45 } 40 46 47 + of_clk_init(clk_match);48 +41 49 return 0; 42 50 } 43 51