aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/mpc85xx_gpio.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/include/asm/mpc85xx_gpio.h')
-rw-r--r--arch/powerpc/include/asm/mpc85xx_gpio.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/mpc85xx_gpio.h b/arch/powerpc/include/asm/mpc85xx_gpio.h
index 1b332f0b19..feebe15cac 100644
--- a/arch/powerpc/include/asm/mpc85xx_gpio.h
+++ b/arch/powerpc/include/asm/mpc85xx_gpio.h
@@ -6,6 +6,7 @@
#ifndef POWERPC_ASM_MPC85XX_GPIO_H_
#define POWERPC_ASM_MPC85XX_GPIO_H_
+#ifndef CONFIG_DM_GPIO
# include <asm/immap_85xx.h>
/*
@@ -110,5 +111,5 @@ static inline int gpio_is_valid(int gpio)
{
return (gpio >= 0) && (gpio < 32);
}
-
+#endif /* not CONFIG_DM_GPIO */
#endif /* not POWERPC_ASM_MPC85XX_GPIO_H_ */