PCLK clock is used by DECON IP. The patch also replaces magic number with
number of clocks in array definition.

Signed-off-by: Andrzej Hajda <a.ha...@samsung.com>
---
 drivers/gpu/drm/exynos/exynos5433_drm_decon.c | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

diff --git a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c 
b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c
index 1ea26dbb..b25d764 100644
--- a/drivers/gpu/drm/exynos/exynos5433_drm_decon.c
+++ b/drivers/gpu/drm/exynos/exynos5433_drm_decon.c
@@ -27,13 +27,23 @@
 #define CURSOR_WIN     2
 #define MIN_FB_WIDTH_FOR_16WORD_BURST  128
 
+static const char * const decon_clks_name[] = {
+       "pclk",
+       "aclk_decon",
+       "aclk_smmu_decon0x",
+       "aclk_xiu_decon0x",
+       "pclk_smmu_decon0x",
+       "sclk_decon_vclk",
+       "sclk_decon_eclk",
+};
+
 struct decon_context {
        struct device                   *dev;
        struct drm_device               *drm_dev;
        struct exynos_drm_crtc          *crtc;
        struct exynos_drm_plane         planes[WINDOWS_NR];
        void __iomem                    *addr;
-       struct clk                      *clks[6];
+       struct clk                      *clks[ARRAY_SIZE(decon_clks_name)];
        unsigned long                   irq_flags;
        int                             pipe;
        bool                            suspended;
@@ -45,15 +55,6 @@ struct decon_context {
        atomic_t                        win_updated;
 };
 
-static const char * const decon_clks_name[] = {
-       "aclk_decon",
-       "aclk_smmu_decon0x",
-       "aclk_xiu_decon0x",
-       "pclk_smmu_decon0x",
-       "sclk_decon_vclk",
-       "sclk_decon_eclk",
-};
-
 static const uint32_t decon_formats[] = {
        DRM_FORMAT_XRGB1555,
        DRM_FORMAT_RGB565,
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to