diff options
author | Jeffy Chen <jeffy.chen@rock-chips.com> | 2017-04-06 20:31:14 +0800 |
---|---|---|
committer | Sean Paul <seanpaul@chromium.org> | 2017-04-07 13:28:31 -0400 |
commit | 18aea7db8446f9b3c83228ff6772086ad8d0a023 (patch) | |
tree | 4a4954fbd6f78cb74787a7f66351a6592a670372 /drivers/gpu/drm | |
parent | b8dfa821c27046ede9bf8eb14cc8109d379428e9 (diff) |
drm: bridge: analogix: Detach panel when unbinding analogix dp
The panel is attached 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-2-git-send-email-jeffy.chen@rock-chips.com
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c index c26997afd3cf..28144a1fb4f3 100644 --- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c +++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c @@ -1443,6 +1443,8 @@ void analogix_dp_unbind(struct device *dev, struct device *master, if (dp->plat_data->panel) { if (drm_panel_unprepare(dp->plat_data->panel)) DRM_ERROR("failed to turnoff the panel\n"); + if (drm_panel_detach(dp->plat_data->panel)) + DRM_ERROR("failed to detach the panel\n"); } pm_runtime_disable(dev); |