[PATCH 1/4] of: gpio: include <of.h> in <of_gpio.h>

Ahmad Fatoum a.fatoum at pengutronix.de
Mon Jan 9 07:58:33 PST 2023


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 at pengutronix.de>
---
 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




More information about the barebox mailing list