drm/drm_of: add drm_of_panel_bridge_remove function
authorbenjamin.gaignard@linaro.org <benjamin.gaignard@linaro.org>
Mon, 2 Oct 2017 09:34:45 +0000 (11:34 +0200)
committerBenjamin Gaignard <benjamin.gaignard@linaro.org>
Tue, 10 Oct 2017 09:32:43 +0000 (11:32 +0200)
commitc70087e8f16f1dfe703d223aadd95ede1cde8e30
tree1a7e3ad8bd8cde5f23b994b6d7054758583c9ee6
parent6b0e284cfa3898109f9f4c9fa6541caa027a3635
drm/drm_of: add drm_of_panel_bridge_remove function

This function is the pendant of drm_of_find_panel_or_bridge()
to remove a previously allocated panel_bridge.
Given a specific port and endpoint it remove the panel bridge.
Since drm_panel_bridge_remove() will check that bridge parameter
is not NULL and is a real drm_panel_bridge and no a simple bridge
it is safe to call it directly.

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Reviewed-by: Philippe Cornu <philippe.cornu@st.com>
Tested-by: Philippe Cornu <philippe.cornu@st.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1506936888-23844-3-git-send-email-benjamin.gaignard@linaro.org
drivers/gpu/drm/drm_of.c
include/drm/drm_of.h