summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDan Murphy <dmurphy@ti.com>2020-07-23 07:01:38 -0500
committerSimon Glass <sjg@chromium.org>2020-07-28 19:30:39 -0600
commit9beacb6c026bc979e840f022098c36f175555539 (patch)
treeb4f676808d2476389f86b65d43d828966d46eeb0 /include
parente9ab331ca6ba667f81b9ae0a21f37e8561801b16 (diff)
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')
-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 f02ec959541..b1a61085440 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>