]> git.sur5r.net Git - u-boot/blobdiff - include/clk.h
tools/kwbimage.h: make offset marks style consistent
[u-boot] / include / clk.h
index dc18b0310a4eea139095449901f3c8fe3faac05d..5a5c2ff1e674875dfd6ba999addf73baae231d3a 100644 (file)
@@ -9,6 +9,7 @@
 #ifndef _CLK_H_
 #define _CLK_H_
 
+#include <linux/errno.h>
 #include <linux/types.h>
 
 /**
@@ -59,7 +60,7 @@ struct clk {
        unsigned long id;
 };
 
-#if CONFIG_IS_ENABLED(OF_CONTROL)
+#if CONFIG_IS_ENABLED(OF_CONTROL) && CONFIG_IS_ENABLED(CLK)
 struct phandle_2_cell;
 int clk_get_by_index_platdata(struct udevice *dev, int index,
                              struct phandle_2_cell *cells, struct clk *clk);