]> git.sur5r.net Git - u-boot/commitdiff
dm: cpu: Fix undefined ENOSYS build error
authorBin Meng <bmeng.cn@gmail.com>
Fri, 12 Jun 2015 06:52:18 +0000 (14:52 +0800)
committerSimon Glass <sjg@chromium.org>
Wed, 15 Jul 2015 00:03:15 +0000 (18:03 -0600)
Include <errno.h> otherwise ENOSYS is undefined.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
common/cmd_cpu.c
drivers/cpu/cpu-uclass.c

index c3e229f00abc72d2aee589e790750a7e9063b5cc..b4af64f54f9ffa40966ef56c77941adac7fc11f6 100644 (file)
@@ -9,6 +9,7 @@
 #include <command.h>
 #include <cpu.h>
 #include <dm.h>
+#include <errno.h>
 
 static const char *cpu_feature_name[CPU_FEAT_COUNT] = {
        "L1 cache",
index ab18ee2ea9346415af7ba0924929ac31dfb698a5..aa0267ca03e9c7cf3c37fac47c822e084ba23ec4 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <cpu.h>
 #include <dm.h>
+#include <errno.h>
 #include <dm/lists.h>
 #include <dm/root.h>