diff options
author | Ovidiu Panait | 2022-01-01 19:13:30 +0200 |
---|---|---|
committer | Tom Rini | 2022-01-18 08:31:02 -0500 |
commit | fd765b0eeb2c71e14b98724ac6696cbd551e85df (patch) | |
tree | 60ddb732b7dee1aec9b3221b702a75da7556ec34 /common | |
parent | 2fd81be11c9042fa072d1a616c928c406746f68c (diff) |
common: board_r: include asm-generic/gpio.h
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.
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/board_r.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/common/board_r.c b/common/board_r.c index b891c844622..f607ce780bb 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 |