summaryrefslogtreecommitdiff
path: root/include/dm/read.h
diff options
context:
space:
mode:
authorDan Murphy <dmurphy@ti.com>2020-07-23 15:01:38 +0300
committerSimon Glass <sjg@chromium.org>2020-07-29 04:30:39 +0300
commit9beacb6c026bc979e840f022098c36f175555539 (patch)
treeb4f676808d2476389f86b65d43d828966d46eeb0 /include/dm/read.h
parente9ab331ca6ba667f81b9ae0a21f37e8561801b16 (diff)
downloadu-boot-9beacb6c026bc979e840f022098c36f175555539.tar.xz
dm: Fix build error when OF_CONTROL is not set
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>
Diffstat (limited to 'include/dm/read.h')
-rw-r--r--include/dm/read.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/dm/read.h b/include/dm/read.h
index f02ec95954..b1a6108544 100644
--- a/include/dm/read.h
+++ b/include/dm/read.h
@@ -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>