aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/display/sunxi
diff options
context:
space:
mode:
authorChen-Yu Tsai <wens@csie.org>2016-09-01 14:13:32 +0800
committerMaxime Ripard <maxime.ripard@free-electrons.com>2016-09-01 18:46:06 +0200
commitb5644a5e72f0a18c0cddf887bec1e1370cf67a8c (patch)
tree08b58bd05ffaa200c237d5bffeab0743742c62d0 /Documentation/devicetree/bindings/display/sunxi
parentdrm/sun4i: rgb: add missing calls to drm_panel_{prepare,unprepare} (diff)
downloadlinux-dev-b5644a5e72f0a18c0cddf887bec1e1370cf67a8c.tar.xz
linux-dev-b5644a5e72f0a18c0cddf887bec1e1370cf67a8c.zip
drm/sun4i: Clear encoder->bridge if a bridge is not found
The KMS helpers (drm_atomic_helper_check_modeset/mode_fixup) pass encoder->bridge directly to drm_bridge_mode_fixup, which expects a valid pointer, or NULL (in which case it just returns). Clear encoder->bridge if a bridge is not found, instead of keeping the ERR_PTR value. Since other drm_bridge functions also follow this pattern of checking for a non-NULL pointer, we can drop the ifs around the calls and just pass the pointer directly. Fixes: 894f5a9f4b4a ("drm/sun4i: Add bridge support") Signed-off-by: Chen-Yu Tsai <wens@csie.org> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Diffstat (limited to 'Documentation/devicetree/bindings/display/sunxi')
0 files changed, 0 insertions, 0 deletions