]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dm: Fix build error when OF_CONTROL is not set
authorDan Murphy <dmurphy@ti.com>
Thu, 23 Jul 2020 12:01:38 +0000 (07:01 -0500)
committerStefano Babic <sbabic@denx.de>
Mon, 27 Jul 2020 19:03:15 +0000 (21:03 +0200)
With OF_CONTROL disabled the build fails for
include/dm/read.h:932:10: error: ‘ENOTSUPP’ undeclared (first use in this function)
  932 |  return -ENOTSUPP;

Fixes: 45224e8f2691 ("dm: core: gracefully handle alias seq without of")
Signed-off-by: Dan Murphy <dmurphy@ti.com>
include/dm/read.h

index f02ec9595413556654641a240c133872baa940ac..b1a6108544031ea15ac50572606dcb1cf3947278 100644 (file)
@@ -9,6 +9,8 @@
 #ifndef _DM_READ_H
 #define _DM_READ_H
 
+#include <linux/errno.h>
+
 #include <dm/fdtaddr.h>
 #include <dm/ofnode.h>
 #include <dm/uclass.h>