drm/drm_of: add drm_of_panel_bridge_remove function
author[email protected] <[email protected]>
Mon, 2 Oct 2017 09:34:45 +0000 (11:34 +0200)
committerBenjamin Gaignard <[email protected]>
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 <[email protected]>
Reviewed-by: Philippe Cornu <[email protected]>
Tested-by: Philippe Cornu <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/drm_of.c
include/drm/drm_of.h