diff mbox series

[v6,2/2] gpio: do not include <asm/arch/gpio.h> on TARGET_BCMNS3

Message ID 20200505175647.6671-3-rayagonda.kokatanur@broadcom.com
State New
Headers show
Series add brcm iproc gpio driver | expand

Commit Message

Rayagonda Kokatanur May 5, 2020, 5:56 p.m. UTC
As no gpio.h is defined for this architecture, to avoid
compilation failure, do not include <asm/arch/gpio.h> for
arch bcmns3.

Signed-off-by: Rayagonda Kokatanur <rayagonda.kokatanur at broadcom.com>
Reviewed-by: Simon Glass <sjg at chromium.org>
---
 arch/arm/include/asm/gpio.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tom Rini July 29, 2020, 8:27 p.m. UTC | #1
On Tue, May 05, 2020 at 11:26:47PM +0530, Rayagonda Kokatanur wrote:

> As no gpio.h is defined for this architecture, to avoid

> compilation failure, do not include <asm/arch/gpio.h> for

> arch bcmns3.

> 

> Signed-off-by: Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>

> Reviewed-by: Simon Glass <sjg@chromium.org>


Applied to u-boot/master, thanks!

-- 
Tom
diff mbox series

Patch

diff --git a/arch/arm/include/asm/gpio.h b/arch/arm/include/asm/gpio.h
index 333e407b66..c067eeb649 100644
--- a/arch/arm/include/asm/gpio.h
+++ b/arch/arm/include/asm/gpio.h
@@ -6,7 +6,7 @@ 
 	!defined(CONFIG_ARCH_LS1088A) && !defined(CONFIG_ARCH_ASPEED) && \
 	!defined(CONFIG_ARCH_LS1012A) && !defined(CONFIG_ARCH_LS1043A) && \
 	!defined(CONFIG_ARCH_LS1046A) && !defined(CONFIG_ARCH_U8500) && \
-	!defined(CONFIG_CORTINA_PLATFORM)
+	!defined(CONFIG_CORTINA_PLATFORM) && !defined(CONFIG_TARGET_BCMNS3)
 #include <asm/arch/gpio.h>
 #endif
 #include <asm-generic/gpio.h>