drm/rockchip: analogix_dp: Disable clock when unbinding
authorJeffy Chen <jeffy.chen@rock-chips.com>
Thu, 6 Apr 2017 12:31:22 +0000 (20:31 +0800)
committerSean Paul <seanpaul@chromium.org>
Fri, 7 Apr 2017 17:28:32 +0000 (13:28 -0400)
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
drivers/gpu/drm/rockchip/analogix_dp-rockchip.c

index 01b3f354ca0efe740a902188fd5a01d68cd7f28c..d8fa7a9c9240bdf53f06d214f5952af7f85e5ee4 100644 (file)
@@ -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 = {