drm: bridge: analogix: Disable clock when unbinding
authorJeffy Chen <[email protected]>
Thu, 6 Apr 2017 12:31:16 +0000 (20:31 +0800)
committerSean Paul <[email protected]>
Fri, 7 Apr 2017 17:28:31 +0000 (13:28 -0400)
The clock is enabled when binding analogix dp.

Signed-off-by: Jeffy Chen <[email protected]>
Reviewed-by: Andrzej Hajda <[email protected]>
Signed-off-by: Sean Paul <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
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);