diff options
author | Jeffy Chen <jeffy.chen@rock-chips.com> | 2017-04-06 20:31:21 +0800 |
---|---|---|
committer | Sean Paul <seanpaul@chromium.org> | 2017-04-07 13:28:32 -0400 |
commit | ec6e7767c925d8c490517315cba75216d9e8620e (patch) | |
tree | e2a26bea092d778320015777781eddd2fab79094 /drivers/gpu/drm/rockchip/rockchip_drm_vop.c | |
parent | 5e570373c015b60a68828b1cd9d475cb33d3be4b (diff) | |
download | blackbird-obmc-linux-ec6e7767c925d8c490517315cba75216d9e8620e.tar.gz blackbird-obmc-linux-ec6e7767c925d8c490517315cba75216d9e8620e.zip |
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
Diffstat (limited to 'drivers/gpu/drm/rockchip/rockchip_drm_vop.c')
-rw-r--r-- | drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 4 |
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) pm_runtime_disable(dev); vop_destroy_crtc(vop); + + clk_unprepare(vop->aclk); + clk_unprepare(vop->hclk); + clk_unprepare(vop->dclk); } const struct component_ops vop_component_ops = { |