rk: sram: fix gcc warning: extra tokens at end of #else directive and fix for rk3066b
author黄涛 <huangtao@rock-chips.com>
Thu, 1 Nov 2012 09:33:13 +0000 (17:33 +0800)
committer黄涛 <huangtao@rock-chips.com>
Thu, 1 Nov 2012 09:33:13 +0000 (17:33 +0800)
arch/arm/plat-rk/sram.c

index c4a3d8e0a5c623174b6f6f8b7573e4b9d636aa1e..863cfad94d67d9cb78a02a6e9b8a61b9cabde36c 100755 (executable)
@@ -107,8 +107,10 @@ void __sramfunc sram_printhex(unsigned int hex)
 struct sram_gpio_data __sramdata pmic_sleep;
 #if defined(CONFIG_ARCH_RK2928)
 static void __iomem *gpio_base[] = {RK2928_GPIO0_BASE, RK2928_GPIO1_BASE, RK2928_GPIO2_BASE, RK2928_GPIO3_BASE};
-#else if defined(CONFIG_ARCH_RK30)
-static void __iomem *gpio_base[] = {RK30_GPIO0_BASE, RK30_GPIO1_BASE, RK30_GPIO2_BASE, RK30_GPIO3_BASE,RK30_GPIO4_BASE,RK30_GPIO6_BASE};
+#elif defined(CONFIG_ARCH_RK3066B)
+static void __iomem *gpio_base[] = {RK30_GPIO0_BASE, RK30_GPIO1_BASE, RK30_GPIO2_BASE, RK30_GPIO3_BASE};
+#elif defined(CONFIG_ARCH_RK30)
+static void __iomem *gpio_base[] = {RK30_GPIO0_BASE, RK30_GPIO1_BASE, RK30_GPIO2_BASE, RK30_GPIO3_BASE, RK30_GPIO4_BASE, RK30_GPIO6_BASE};
 #endif
 
 int sram_gpio_init(int gpio, struct sram_gpio_data *data)