gpio: rk2928: enable support rk30_gpiolib_pull_updown

This commit is contained in:
黄涛
2012-08-16 11:51:17 +08:00
parent c5066ca248
commit 278d2a1ab2

View File

@@ -318,10 +318,9 @@ static void rk30_gpiolib_set(struct gpio_chip *chip, unsigned offset, int val)
spin_unlock_irqrestore(&bank->lock, flags);
}
static int rk30_gpiolib_pull_updown(struct gpio_chip *chip, unsigned offset, unsigned enable)
{
#if defined(CONFIG_ARCH_RK30)
#if defined(CONFIG_ARCH_RK30) || defined(CONFIG_ARCH_RK2928)
struct rk30_gpio_bank *bank = to_rk30_gpio_bank(chip);
unsigned long flags;
@@ -335,7 +334,6 @@ static int rk30_gpiolib_pull_updown(struct gpio_chip *chip, unsigned offset, uns
return 0;
}
static int rk30_gpiolib_to_irq(struct gpio_chip *chip, unsigned offset)
{
return chip->base + offset;