[PATCH 6/7] common: board_r: include asm-generic/gpio.h
Ovidiu Panait
ovidiu.panait at windriver.com
Sat Oct 30 08:51:39 CEST 2021
Not all architectures define <asm/gpio.h> and even on those that do, the
header cannot be included for all boards without causing various build
failures.
Since common/board_r.c only needs gpio_hog_probe_all() declaration, include
<asm-generic/gpio.h> and drop the associated ifdef.
Signed-off-by: Ovidiu Panait <ovidiu.panait at windriver.com>
---
common/board_r.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/common/board_r.c b/common/board_r.c
index af900e2c6e..506aa446fc 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -66,9 +66,7 @@
#include <linux/err.h>
#include <efi_loader.h>
#include <wdt.h>
-#if defined(CONFIG_GPIO_HOG)
-#include <asm/gpio.h>
-#endif
+#include <asm-generic/gpio.h>
#ifdef CONFIG_EFI_SETUP_EARLY
#include <efi_loader.h>
#endif
--
2.25.1
More information about the U-Boot
mailing list