diff options
author | Andrzej Hajda <a.hajda@samsung.com> | 2016-02-11 11:25:04 (GMT) |
---|---|---|
committer | Inki Dae <daeinki@gmail.com> | 2016-02-15 14:25:23 (GMT) |
commit | 00780f3b1a10d1be006b920505faf1d02f76f0e4 (patch) | |
tree | c2cda89048d2483a54b6101cf6878063ab3a30c6 /drivers/gpu | |
parent | d380a1632c4e036d50c898e874a194fd4bf8bdee (diff) | |
download | linux-00780f3b1a10d1be006b920505faf1d02f76f0e4.tar.xz |
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>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c index 107224a..162ab93 100644 --- a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c +++ b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c @@ -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; |