drm/stm: Fix an error handling path in stm_drm_platform_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 6 Jan 2024 16:54:32 +0000 (17:54 +0100)
committerRaphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
Tue, 9 Jul 2024 08:14:38 +0000 (10:14 +0200)
commitce7c90bfda2656418c69ba0dd8f8a7536b8928d4
treefa8243e6b47196df8653eb8085f12b3d3009c9ce
parentf592e01664b4a57b109fcf6f6916145517f94bd7
drm/stm: Fix an error handling path in stm_drm_platform_probe()

If drm_dev_register() fails, a call to drv_load() must be undone, as
already done in the remove function.

Fixes: b759012c5fa7 ("drm/stm: Add STM32 LTDC driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20fff7f853f20a48a96db8ff186124470ec4d976.1704560028.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
drivers/gpu/drm/stm/drv.c