diff options
author | Jeffy Chen <jeffy.chen@rock-chips.com> | 2017-04-06 14:31:22 +0200 |
---|---|---|
committer | Sean Paul <seanpaul@chromium.org> | 2017-04-07 19:28:32 +0200 |
commit | b7ac7b5b6bb46ed0afbcf94b0834d60e557da779 (patch) | |
tree | c7822ed1a209092d24a875a0f941646740d5cfc0 /drivers/gpu/drm/rockchip | |
parent | drm/rockchip: vop: Unprepare clocks when unbinding (diff) | |
download | linux-b7ac7b5b6bb46ed0afbcf94b0834d60e557da779.tar.xz linux-b7ac7b5b6bb46ed0afbcf94b0834d60e557da779.zip |
drm/rockchip: analogix_dp: Disable clock when unbinding
The clock is enabled when binding cdn dp.
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-10-git-send-email-jeffy.chen@rock-chips.com
Diffstat (limited to 'drivers/gpu/drm/rockchip')
-rw-r--r-- | drivers/gpu/drm/rockchip/analogix_dp-rockchip.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c b/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c index 01b3f354ca0e..d8fa7a9c9240 100644 --- a/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c +++ b/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c @@ -417,7 +417,8 @@ static void rockchip_dp_unbind(struct device *dev, struct device *master, rockchip_drm_psr_unregister(&dp->encoder); - return analogix_dp_unbind(dev, master, data); + analogix_dp_unbind(dev, master, data); + clk_disable_unprepare(dp->pclk); } static const struct component_ops rockchip_dp_component_ops = { |