diff mbox

[U-Boot,v5,1/7] configs: at91-sama5_common: fix for CONFIG_AT91_GPIO

Message ID 20170413023122.23222-2-wenyou.yang@atmel.com
State Accepted
Delegated to: Simon Glass
Headers show

Commit Message

Wenyou Yang April 13, 2017, 2:31 a.m. UTC
Add #ifndef CONFIG_DM_GPIO for CONFIG_AT91_GPIO define to avoid
the redefine compilation error.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
Reviewed-by: Andreas Bießmann <andreas@biessmann.org>
---

Changes in v5: None
Changes in v4: None
Changes in v3: None
Changes in v2: None

 include/configs/at91-sama5_common.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

Simon Glass April 13, 2017, 9:17 p.m. UTC | #1
On 12 April 2017 at 20:31, Wenyou Yang <wenyou.yang@atmel.com> wrote:
> Add #ifndef CONFIG_DM_GPIO for CONFIG_AT91_GPIO define to avoid
> the redefine compilation error.
>
> Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
> Reviewed-by: Andreas Bießmann <andreas@biessmann.org>
> ---
>
> Changes in v5: None
> Changes in v4: None
> Changes in v3: None
> Changes in v2: None
>
>  include/configs/at91-sama5_common.h | 2 ++
>  1 file changed, 2 insertions(+)

Applied to u-boot-dm, thanks!
diff mbox

Patch

diff --git a/include/configs/at91-sama5_common.h b/include/configs/at91-sama5_common.h
index 42410a8526..de37e24542 100644
--- a/include/configs/at91-sama5_common.h
+++ b/include/configs/at91-sama5_common.h
@@ -27,7 +27,9 @@ 
 #define CONFIG_ENV_VARS_UBOOT_CONFIG
 
 /* general purpose I/O */
+#ifndef CONFIG_DM_GPIO
 #define CONFIG_AT91_GPIO
+#endif
 
 
 /*