aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffy Chen <jeffy.chen@rock-chips.com>2017-04-06 08:31:21 -0400
committerSean Paul <seanpaul@chromium.org>2017-04-07 13:28:32 -0400
commitec6e7767c925d8c490517315cba75216d9e8620e (patch)
treee2a26bea092d778320015777781eddd2fab79094
parent5e570373c015b60a68828b1cd9d475cb33d3be4b (diff)
drm/rockchip: vop: Unprepare clocks when unbinding
The clocks are prepared when binding vop. Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com> Signed-off-by: Sean Paul <seanpaul@chromium.org> Link: http://patchwork.freedesktop.org/patch/msgid/1491481885-13775-9-git-send-email-jeffy.chen@rock-chips.com
-rw-r--r--drivers/gpu/drm/rockchip/rockchip_drm_vop.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
index b65b296ca48b..3f7a82d1e095 100644
--- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
+++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
@@ -1634,6 +1634,10 @@ static void vop_unbind(struct device *dev, struct device *master, void *data)
1634 1634
1635 pm_runtime_disable(dev); 1635 pm_runtime_disable(dev);
1636 vop_destroy_crtc(vop); 1636 vop_destroy_crtc(vop);
1637
1638 clk_unprepare(vop->aclk);
1639 clk_unprepare(vop->hclk);
1640 clk_unprepare(vop->dclk);
1637} 1641}
1638 1642
1639const struct component_ops vop_component_ops = { 1643const struct component_ops vop_component_ops = {