Commit 795f9953 authored by Boris BREZILLON's avatar Boris BREZILLON Committed by Linus Walleij

pinctrl: at91: fix clk_unprepare and clk_disable order

clk_unprepare shall be called before clk_disable.
Fix the issue by replacing the clk_unprepare and clk_disable calls by a
single clk_disable_unprepare call.
Signed-off-by: default avatarBoris BREZILLON <b.brezillon@overkiz.com>
Acked-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 8ba3f4d0
...@@ -1365,13 +1365,11 @@ void at91_pinctrl_gpio_suspend(void) ...@@ -1365,13 +1365,11 @@ void at91_pinctrl_gpio_suspend(void)
__raw_writel(backups[i], pio + PIO_IDR); __raw_writel(backups[i], pio + PIO_IDR);
__raw_writel(wakeups[i], pio + PIO_IER); __raw_writel(wakeups[i], pio + PIO_IER);
if (!wakeups[i]) { if (!wakeups[i])
clk_unprepare(gpio_chips[i]->clock); clk_disable_unprepare(gpio_chips[i]->clock);
clk_disable(gpio_chips[i]->clock); else
} else {
printk(KERN_DEBUG "GPIO-%c may wake for %08x\n", printk(KERN_DEBUG "GPIO-%c may wake for %08x\n",
'A'+i, wakeups[i]); 'A'+i, wakeups[i]);
}
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment