aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/msm/msm_gpu.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2017-02-26 15:34:42 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2017-02-26 15:34:42 -0500
commit8e22e1b3499a446df48c2b26667ca36c55bf864c (patch)
tree5329f98b3eb3c95a9dcbab0fa4f9b6e62f0e788d /drivers/gpu/drm/msm/msm_gpu.c
parent00d3c14f14d51babd8aeafd5fa734ccf04f5ca3d (diff)
parent64a577196d66b44e37384bc5c4d78c61f59d5b2a (diff)
Merge airlied/drm-next into drm-misc-next
Backmerge the main pull request to sync up with all the newly landed drivers. Otherwise we'll have chaos even before 4.12 started in earnest. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_gpu.c')
-rw-r--r--drivers/gpu/drm/msm/msm_gpu.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/gpu/drm/msm/msm_gpu.c b/drivers/gpu/drm/msm/msm_gpu.c
index b28527a65d09..99e05aacbee1 100644
--- a/drivers/gpu/drm/msm/msm_gpu.c
+++ b/drivers/gpu/drm/msm/msm_gpu.c
@@ -560,8 +560,7 @@ static irqreturn_t irq_handler(int irq, void *data)
560} 560}
561 561
562static const char *clk_names[] = { 562static const char *clk_names[] = {
563 "core_clk", "iface_clk", "rbbmtimer_clk", "mem_clk", 563 "core", "iface", "rbbmtimer", "mem", "mem_iface", "alt_mem_iface",
564 "mem_iface_clk", "alt_mem_iface_clk",
565}; 564};
566 565
567int msm_gpu_init(struct drm_device *drm, struct platform_device *pdev, 566int msm_gpu_init(struct drm_device *drm, struct platform_device *pdev,
@@ -625,13 +624,13 @@ int msm_gpu_init(struct drm_device *drm, struct platform_device *pdev,
625 624
626 /* Acquire clocks: */ 625 /* Acquire clocks: */
627 for (i = 0; i < ARRAY_SIZE(clk_names); i++) { 626 for (i = 0; i < ARRAY_SIZE(clk_names); i++) {
628 gpu->grp_clks[i] = devm_clk_get(&pdev->dev, clk_names[i]); 627 gpu->grp_clks[i] = msm_clk_get(pdev, clk_names[i]);
629 DBG("grp_clks[%s]: %p", clk_names[i], gpu->grp_clks[i]); 628 DBG("grp_clks[%s]: %p", clk_names[i], gpu->grp_clks[i]);
630 if (IS_ERR(gpu->grp_clks[i])) 629 if (IS_ERR(gpu->grp_clks[i]))
631 gpu->grp_clks[i] = NULL; 630 gpu->grp_clks[i] = NULL;
632 } 631 }
633 632
634 gpu->ebi1_clk = devm_clk_get(&pdev->dev, "bus_clk"); 633 gpu->ebi1_clk = msm_clk_get(pdev, "bus");
635 DBG("ebi1_clk: %p", gpu->ebi1_clk); 634 DBG("ebi1_clk: %p", gpu->ebi1_clk);
636 if (IS_ERR(gpu->ebi1_clk)) 635 if (IS_ERR(gpu->ebi1_clk))
637 gpu->ebi1_clk = NULL; 636 gpu->ebi1_clk = NULL;