linux/drivers/gpu/drm/sun4i
Chen-Yu Tsai b5644a5e72 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: 894f5a9f4b ("drm/sun4i: Add bridge support")
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
2016-09-01 18:46:06 +02:00
..
Kconfig drm/sun4i: add COMMON_CLK dependency 2016-05-30 08:28:33 +02:00
Makefile drm: sun4i: Add composite output 2016-04-28 10:30:05 +02:00
sun4i_backend.c drm: sun4i: print DMA address correctly 2016-05-30 08:28:33 +02:00
sun4i_backend.h drm: Add Allwinner A10 Display Engine support 2016-04-28 10:30:05 +02:00
sun4i_crtc.c Linux 4.7 2016-07-26 17:26:29 +10:00
sun4i_crtc.h drm: Add Allwinner A10 Display Engine support 2016-04-28 10:30:05 +02:00
sun4i_dotclock.c drm/sun4i: request exact rates to our parents 2016-05-30 08:28:33 +02:00
sun4i_dotclock.h drm: Add Allwinner A10 Display Engine support 2016-04-28 10:30:05 +02:00
sun4i_drv.c drm/sun4i: Add bridge support 2016-08-22 15:34:18 +02:00
sun4i_drv.h drm: Add Allwinner A10 Display Engine support 2016-04-28 10:30:05 +02:00
sun4i_framebuffer.c GPU-DRM-sun4i: Delete an unnecessary check before drm_fbdev_cma_hotplug_event() 2016-07-20 19:47:35 +02:00
sun4i_framebuffer.h drm: Add Allwinner A10 Display Engine support 2016-04-28 10:30:05 +02:00
sun4i_layer.c drm: Add Allwinner A10 Display Engine support 2016-04-28 10:30:05 +02:00
sun4i_layer.h drm: Add Allwinner A10 Display Engine support 2016-04-28 10:30:05 +02:00
sun4i_rgb.c drm/sun4i: Clear encoder->bridge if a bridge is not found 2016-09-01 18:46:06 +02:00
sun4i_rgb.h drm: sun4i: Add RGB output 2016-04-28 10:30:05 +02:00
sun4i_tcon.c drm/sun4i: Remove redundant dev_err call in sun4i_tcon_init_regmap() 2016-08-27 14:16:13 +02:00
sun4i_tcon.h drm/sun4i: Add bridge support 2016-08-22 15:34:18 +02:00
sun4i_tv.c drm: sun4i: Rely on the default ->best_encoder() behavior 2016-06-10 17:24:44 +02:00