From: Steven Miao Date: Tue, 8 May 2012 05:58:46 +0000 (+0800) Subject: bfin_gpio: fix bf548-ezkit kernel fail to boot X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ec98e6b836aff86fe764e28934e56a2f522a07dc;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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