configs: at91-sama5_common: fix for CONFIG_AT91_GPIO
authorWenyou Yang <wenyou.yang@atmel.com>
Thu, 13 Apr 2017 02:31:15 +0000 (10:31 +0800)
committerSimon Glass <sjg@chromium.org>
Thu, 13 Apr 2017 20:44:52 +0000 (14:44 -0600)
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>
include/configs/at91-sama5_common.h

index 3e97948..dbd4d84 100644 (file)
@@ -27,7 +27,9 @@
 #define CONFIG_ENV_VARS_UBOOT_CONFIG
 
 /* general purpose I/O */
+#ifndef CONFIG_DM_GPIO
 #define CONFIG_AT91_GPIO
+#endif
 
 
 /*