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
This commit is contained in:
Jeffy Chen 2017-04-06 20:31:22 +08:00 committed by Sean Paul
parent ec6e7767c9
commit b7ac7b5b6b

View 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 = {