mirror of
https://github.com/torvalds/linux.git
synced 2024-12-01 08:31:37 +00:00
drm/exynos/decon: fix disable clocks order
Decon requires that clocks should be disabled in reverse order. Otherwise system hangs. Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
This commit is contained in:
parent
d380a1632c
commit
00780f3b1a
@ -580,9 +580,9 @@ out:
|
||||
static int exynos5433_decon_suspend(struct device *dev)
|
||||
{
|
||||
struct decon_context *ctx = dev_get_drvdata(dev);
|
||||
int i;
|
||||
int i = ARRAY_SIZE(decon_clks_name);
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(decon_clks_name); i++)
|
||||
while (--i >= 0)
|
||||
clk_disable_unprepare(ctx->clks[i]);
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user