From ec98e6b836aff86fe764e28934e56a2f522a07dc Mon Sep 17 00:00:00 2001 From: Steven Miao Date: Tue, 8 May 2012 13:58:46 +0800 Subject: [PATCH] bfin_gpio: fix bf548-ezkit kernel fail to boot Fix bf548-ezkit kernel fail to boot when request peripheral pins. Signed-off-by: Steven Miao Signed-off-by: Bob Liu --- arch/blackfin/kernel/bfin_gpio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/blackfin/kernel/bfin_gpio.c b/arch/blackfin/kernel/bfin_gpio.c index c6e800998126..83139aaf3072 100644 --- a/arch/blackfin/kernel/bfin_gpio.c +++ b/arch/blackfin/kernel/bfin_gpio.c @@ -66,10 +66,11 @@ static struct gpio_port_t * const gpio_array[] = { (struct gpio_port_t *)PORTE_FER, (struct gpio_port_t *)PORTF_FER, (struct gpio_port_t *)PORTG_FER, -#elif defined(CONFIG_BF54x) +# if defined(CONFIG_BF54x) (struct gpio_port_t *)PORTH_FER, (struct gpio_port_t *)PORTI_FER, (struct gpio_port_t *)PORTJ_FER, +# endif #else # error no gpio arrays defined #endif