This header can't be used without types and functions declared in of.h, so include that first. Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> --- include/of_gpio.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/of_gpio.h b/include/of_gpio.h index 9076c81e5462..30ff204baf9e 100644 --- a/include/of_gpio.h +++ b/include/of_gpio.h @@ -8,6 +8,8 @@ #ifndef __OF_GPIO_H #define __OF_GPIO_H +#include <of.h> + /* * This is Linux-specific flags. By default controllers' and Linux' mapping * match, but GPIO controllers are free to translate their own flags to -- 2.30.2