diff options
Diffstat (limited to 'drivers/gpio/gpio-omap.c')
-rw-r--r-- | drivers/gpio/gpio-omap.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index 4fbc208c32cf..e6efd77668f0 100644 --- a/drivers/gpio/gpio-omap.c +++ b/drivers/gpio/gpio-omap.c | |||
@@ -899,12 +899,6 @@ static int gpio_debounce(struct gpio_chip *chip, unsigned offset, | |||
899 | 899 | ||
900 | bank = container_of(chip, struct gpio_bank, chip); | 900 | bank = container_of(chip, struct gpio_bank, chip); |
901 | 901 | ||
902 | if (!bank->dbck) { | ||
903 | bank->dbck = clk_get(bank->dev, "dbclk"); | ||
904 | if (IS_ERR(bank->dbck)) | ||
905 | dev_err(bank->dev, "Could not get gpio dbck\n"); | ||
906 | } | ||
907 | |||
908 | spin_lock_irqsave(&bank->lock, flags); | 902 | spin_lock_irqsave(&bank->lock, flags); |
909 | _set_gpio_debounce(bank, offset, debounce); | 903 | _set_gpio_debounce(bank, offset, debounce); |
910 | spin_unlock_irqrestore(&bank->lock, flags); | 904 | spin_unlock_irqrestore(&bank->lock, flags); |
@@ -976,6 +970,10 @@ static void omap_gpio_mod_init(struct gpio_bank *bank) | |||
976 | /* Initialize interface clk ungated, module enabled */ | 970 | /* Initialize interface clk ungated, module enabled */ |
977 | if (bank->regs->ctrl) | 971 | if (bank->regs->ctrl) |
978 | __raw_writel(0, base + bank->regs->ctrl); | 972 | __raw_writel(0, base + bank->regs->ctrl); |
973 | |||
974 | bank->dbck = clk_get(bank->dev, "dbclk"); | ||
975 | if (IS_ERR(bank->dbck)) | ||
976 | dev_err(bank->dev, "Could not get gpio dbck\n"); | ||
979 | } | 977 | } |
980 | 978 | ||
981 | static __devinit void | 979 | static __devinit void |