diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-05-02 12:59:19 +0200 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2016-05-02 09:00:56 -0500 |
commit | 011d6f5c3e5f38a767c8f4c7e2de73dc91959cb0 (patch) | |
tree | 4b0cd1f944e2bf98d07d39314bb68d59590cce10 /include/linux/of_graph.h | |
parent | 1c986e3643d278d93e9ca67b3c752f486cc32318 (diff) |
of: include errno.h in of_graph.h
When CONFIG_OF is disabled, we have to include linux/errno.h before
including of_graph.h, or get build errors like in the newly added
sun4i drm driver:
In file included from ../drivers/gpu/drm/sun4i/sun4i_drv.c:14:0:
include/linux/of_graph.h: In function 'of_graph_parse_endpoint':
include/linux/of_graph.h:58:10: error: 'ENOSYS' undeclared (first use in this function)
A better solution is to ensure that the header can be included
by itself, so let's include linux/errno.h here to fix the error
we just got, and any similar future error.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 9026e0d122ac ("drm: Add Allwinner A10 Display Engine support")
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'include/linux/of_graph.h')
-rw-r--r-- | include/linux/of_graph.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/of_graph.h b/include/linux/of_graph.h index f8bcd0e21a26..bb3a5a2cd570 100644 --- a/include/linux/of_graph.h +++ b/include/linux/of_graph.h @@ -15,6 +15,7 @@ #define __LINUX_OF_GRAPH_H #include <linux/types.h> +#include <linux/errno.h> /** * struct of_endpoint - the OF graph endpoint data structure |