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: 576d72fbfb ("drm/exynos: mic: add a bridge at probe")
Cc: [email protected]
Reviewed-by: Raphaël Gallais-Pou <[email protected]>
Reviewed-by: Luca Ceresoli <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Luca Ceresoli <[email protected]>