[U-Boot] [PATCH] clk: Correct compilation when OF_CONTROL is not set

Simon Glass sjg at chromium.org
Thu Jan 21 03:41:37 CET 2016


At present clk.h does not build without OF_CONTROL, but it is clearly
intended to. Fix it.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 include/clk.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/clk.h b/include/clk.h
index 05c5a79..e6ab934 100644
--- a/include/clk.h
+++ b/include/clk.h
@@ -8,6 +8,7 @@
 #ifndef _CLK_H_
 #define _CLK_H_
 
+#include <errno.h>
 #include <linux/types.h>
 
 struct udevice;
@@ -153,7 +154,7 @@ int fdt_clk_get(const void *fdt, int nodeoffset, int index,
 		struct udevice **dev);
 #else
 static inline int fdt_clk_get(const void *fdt, int nodeoffset, int index,
-			      struct udevice **dev);
+			      struct udevice **dev)
 {
 	return -ENOSYS;
 }
-- 
2.7.0.rc3.207.g0ac5344



More information about the U-Boot mailing list