]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
gpio: do not include <asm/arch/gpio.h> on ARCH_QEMU
authorHarm Berntsen <harm.berntsen@nedap.com>
Fri, 30 Oct 2020 08:45:15 +0000 (08:45 +0000)
committerTom Rini <trini@konsulko.com>
Mon, 18 Jan 2021 20:14:15 +0000 (15:14 -0500)
As no gpio.h is defined for this architecture, to avoid
compilation failure, do not include <asm/arch/gpio.h> for
QEMU.

Signed-off-by: Harm Berntsen <harm.berntsen@nedap.com>
arch/arm/include/asm/gpio.h

index 6ecb876eda51a3e1976ba791f46a9d62399d06fc..7609367884ff44c0084ae2b9f4db027904d1b71d 100644 (file)
@@ -3,7 +3,8 @@
        !defined(CONFIG_ARCH_BCM6858) && !defined(CONFIG_ARCH_BCM63158) && \
        !defined(CONFIG_ARCH_ROCKCHIP) && !defined(CONFIG_ARCH_ASPEED) && \
        !defined(CONFIG_ARCH_U8500) && !defined(CONFIG_CORTINA_PLATFORM) && \
-       !defined(CONFIG_TARGET_BCMNS3) && !defined(CONFIG_TARGET_TOTAL_COMPUTE)
+       !defined(CONFIG_TARGET_BCMNS3) && !defined(CONFIG_TARGET_TOTAL_COMPUTE) && \
+       !defined(CONFIG_ARCH_QEMU)
 #include <asm/arch/gpio.h>
 #endif
 #include <asm-generic/gpio.h>