diff options
author | Dan Murphy <dmurphy@ti.com> | 2020-07-23 07:01:38 -0500 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-07-28 19:30:39 -0600 |
commit | 9beacb6c026bc979e840f022098c36f175555539 (patch) | |
tree | b4f676808d2476389f86b65d43d828966d46eeb0 /include/dm | |
parent | e9ab331ca6ba667f81b9ae0a21f37e8561801b16 (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/dm')
-rw-r--r-- | include/dm/read.h | 2 |
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> |