Loading
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: d28726ef ("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>