mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +00:00
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 <[email protected]>
Fixes: d28726efc6 ("drm/sti: hda: add bridge before attaching")
Cc: [email protected]
Reviewed-by: Luca Ceresoli <[email protected]>
Acked-by: Raphaël Gallais-Pou <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Raphael Gallais-Pou <[email protected]>