pinctrl: at91: replace clk_prepare + clk_enable by clk_prepare_enable
Replace the clk_prepare and clk_enable calls by a single clk_prepare_enable call. Signed-off-by: Boris BREZILLON <b.brezillon@overkiz.com> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
795f9953ea
commit
37ef1d9243
|
@ -1385,10 +1385,8 @@ void at91_pinctrl_gpio_resume(void)
|
||||||
|
|
||||||
pio = gpio_chips[i]->regbase;
|
pio = gpio_chips[i]->regbase;
|
||||||
|
|
||||||
if (!wakeups[i]) {
|
if (!wakeups[i])
|
||||||
if (clk_prepare(gpio_chips[i]->clock) == 0)
|
clk_prepare_enable(gpio_chips[i]->clock);
|
||||||
clk_enable(gpio_chips[i]->clock);
|
|
||||||
}
|
|
||||||
|
|
||||||
__raw_writel(wakeups[i], pio + PIO_IDR);
|
__raw_writel(wakeups[i], pio + PIO_IDR);
|
||||||
__raw_writel(backups[i], pio + PIO_IER);
|
__raw_writel(backups[i], pio + PIO_IER);
|
||||||
|
|
Loading…
Reference in New Issue