mirror of
https://github.com/torvalds/linux.git
synced 2026-06-10 07:32:29 +02:00
rk: sram: fix gcc warning: extra tokens at end of #else directive and fix for rk3066b
This commit is contained in:
parent
903d694ab5
commit
aa0e8730dc
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user