drm: bridge: analogix: Disable clock when unbinding
authorJeffy Chen <jeffy.chen@rock-chips.com>
Thu, 6 Apr 2017 12:31:16 +0000 (20:31 +0800)
committerSean Paul <seanpaul@chromium.org>
Fri, 7 Apr 2017 17:28:31 +0000 (13:28 -0400)
The clock is enabled when binding analogix dp.

Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1491481885-13775-4-git-send-email-jeffy.chen@rock-chips.com
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c

index 7b75f822045e42674c9e15b4b6a537b26dfd52de..d05ade4fb7fdf56a4d63284a3d926182d80fb786 100644 (file)
@@ -1449,6 +1449,7 @@ void analogix_dp_unbind(struct device *dev, struct device *master,
 
        drm_dp_aux_unregister(&dp->aux);
        pm_runtime_disable(dev);
+       clk_disable_unprepare(dp->clock);
 }
 EXPORT_SYMBOL_GPL(analogix_dp_unbind);