arch: nios2: Enable the common clk subsystem on Nios2
[sfrench/cifs-2.6.git] / arch / nios2 / platform / platform.c
index 2a35154ca1531f6c5e85aeb5c3aaefade71796a6..9737a87121fa7c5d6b41378ca55ba12f19bb44a4 100644 (file)
 #include <linux/slab.h>
 #include <linux/sys_soc.h>
 #include <linux/io.h>
+#include <linux/clk-provider.h>
+
+static const struct of_device_id clk_match[] __initconst = {
+       { .compatible = "fixed-clock", .data = of_fixed_clk_setup, },
+       {}
+};
 
 static int __init nios2_soc_device_init(void)
 {
@@ -38,6 +44,8 @@ static int __init nios2_soc_device_init(void)
                }
        }
 
+       of_clk_init(clk_match);
+
        return 0;
 }