bfin_gpio: fix bf548-ezkit kernel fail to boot
authorSteven Miao <[email protected]>
Tue, 8 May 2012 05:58:46 +0000 (13:58 +0800)
committerBob Liu <[email protected]>
Mon, 21 May 2012 06:54:41 +0000 (14:54 +0800)
Fix bf548-ezkit kernel fail to boot when request peripheral pins.

Signed-off-by: Steven Miao <[email protected]>
Signed-off-by: Bob Liu <[email protected]>
arch/blackfin/kernel/bfin_gpio.c

index c6e8009981264c09e6e47272180b29a84f8517b4..83139aaf3072b21c3faafb9c1b69bade1cdf3ccf 100644 (file)
@@ -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