drm/vc4: Fix oops dereferencing DPI's connector since panel_bridge.
authorEric Anholt <[email protected]>
Fri, 9 Mar 2018 23:32:56 +0000 (15:32 -0800)
committerSean Paul <[email protected]>
Mon, 7 May 2018 14:19:11 +0000 (10:19 -0400)
commit164c2416dd40770aba5814f93da835e8a9f7196d
tree63871b8002836130b8bdc0652788ef3cfa1ab89e
parentb5cb2e5a1f64d882a155add7522247ab0523051e
drm/vc4: Fix oops dereferencing DPI's connector since panel_bridge.

In the cleanup, I didn't notice that we needed to dereference the
connector for the bus_format.  Fix the regression by looking up the
first (and only) connector attached to us, and assume that its
bus_format is what we want.  Some day it would be good to have that
part of display_info attached to the bridge, instead.

v2: Fix stray whitespace change

Signed-off-by: Eric Anholt <[email protected]>
Fixes: 7b1298e05310 ("drm/vc4: Switch DPI to using the panel-bridge helper.")
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Sean Paul <[email protected]>
Reviewed-by: Boris Brezillon <[email protected]>
Signed-off-by: Sean Paul <[email protected]>
drivers/gpu/drm/vc4/vc4_dpi.c