linux/drivers/gpu/drm/sti
Osama Abdelkader 84ae184026 drm/sti: remove bridge when sti_hda component_add fails
Use devm_drm_bridge_add() so the bridge is released if probe fails after
registration, and drop the manual drm_bridge_remove() in remove().

Check the return value of devm_drm_bridge_add().

Signed-off-by: Osama Abdelkader <osama.abdelkader@gmail.com>
Fixes: d28726efc6 ("drm/sti: hda: add bridge before attaching")
Cc: stable@vger.kernel.org
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Acked-by: Raphaël Gallais-Pou <rgallaispou@gmail.com>
Link: https://patch.msgid.link/20260423200622.325076-1-osama.abdelkader@gmail.com
Signed-off-by: Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
2026-05-04 22:52:39 +02:00
..
Kconfig drm/sti: Run DRM default client setup 2024-09-26 09:31:27 +02:00
Makefile drm/sti: remove duplicate object names 2025-04-03 18:24:24 +02:00
NOTES
sti_awg_utils.c
sti_awg_utils.h
sti_compositor.c drm/sti: move to devm_platform_ioremap_resource() usage 2025-03-10 16:25:26 -04:00
sti_compositor.h
sti_crtc.c drm: Remove unnecessary include statements of drm_plane_helper.h 2022-07-26 18:42:04 +02:00
sti_crtc.h
sti_cursor.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
sti_cursor.h
sti_drv.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
sti_drv.h
sti_dvo.c drm/sti: dvo: convert to devm_drm_bridge_alloc() API 2025-05-21 13:40:09 +02:00
sti_gdp.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
sti_gdp.h
sti_hda.c drm/sti: remove bridge when sti_hda component_add fails 2026-05-04 22:52:39 +02:00
sti_hdmi_tx3g4c28phy.c drm/sti/sti_hdmi_tx3g4c28phy: Provide function names for kernel-doc headers 2021-06-03 13:29:11 +02:00
sti_hdmi_tx3g4c28phy.h
sti_hdmi.c drm/sti: hdmi: add bridge before attaching 2025-11-03 13:04:55 +01:00
sti_hdmi.h drm/sti: hdmi: convert to devm_drm_bridge_alloc() API 2025-07-09 11:24:45 +02:00
sti_hqvdp_lut.h
sti_hqvdp.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
sti_mixer.c drm/sti: Add __iomem for mixer_dbg_mxn's parameter 2024-11-26 14:02:25 +01:00
sti_mixer.h
sti_plane.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
sti_plane.h drm: Remove unnecessary include statements of drm_plane_helper.h 2022-07-26 18:42:04 +02:00
sti_tvout.c drm/sti: move to devm_platform_ioremap_resource() usage 2025-03-10 16:25:26 -04:00
sti_vid.c
sti_vid.h
sti_vtg.c drm: sti: fix device leaks at component probe 2025-11-24 13:56:16 +01:00
sti_vtg.h