drm/bridge: Fix lvds-encoder since the panel_bridge rework.
authorEric Anholt <eric@anholt.net>
Tue, 14 Nov 2017 19:16:47 +0000 (11:16 -0800)
committerArchit Taneja <architt@codeaurora.org>
Thu, 30 Nov 2017 05:33:45 +0000 (11:03 +0530)
commitdbb58bfd9ae6c885b2ca001a9a5ab8b881fb4ba9
tree5af26d5d48fbb28b62d6d2800ac8f1ffef843521
parentebe32c3e282a62974b190b9d514864fc0d56716e
drm/bridge: Fix lvds-encoder since the panel_bridge rework.

The panel_bridge bridge attaches to the panel's OF node, not the
lvds-encoder's node.  Put in a little no-op bridge of our own so that
our consumers can still find a bridge where they expect.

This also fixes an unintended unregistration and leak of the
panel-bridge on module remove.

Signed-off-by: Eric Anholt <eric@anholt.net>
Fixes: 13dfc0540a57 ("drm/bridge: Refactor out the panel wrapper from the lvds-encoder bri
dge.")
Tested-by: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20171114191647.22207-1-eric@anholt.net
drivers/gpu/drm/bridge/lvds-encoder.c