]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/exynos: remove bridge when component_add fails
authorOsama Abdelkader <osama.abdelkader@gmail.com>
Thu, 23 Apr 2026 20:06:20 +0000 (22:06 +0200)
committerLuca Ceresoli <luca.ceresoli@bootlin.com>
Tue, 5 May 2026 14:50:42 +0000 (16:50 +0200)
commit26f6654a9a60eb4d241f42a0ec85412e8821480b
tree11aa38414e017bc99091f787cf8d07a11213fc20
parent2d4e80271f784aa0c7b17676e9762c7e8156be1c
drm/exynos: remove bridge when 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: 576d72fbfb45 ("drm/exynos: mic: add a bridge at probe")
Cc: stable@vger.kernel.org
Reviewed-by: Raphaƫl Gallais-Pou <rgallaispou@gmail.com>
Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Link: https://patch.msgid.link/20260423200622.325076-2-osama.abdelkader@gmail.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
drivers/gpu/drm/exynos/exynos_drm_mic.c