]> git.baikalelectronics.ru Git - kernel.git/commit
drm/imx: dw_hdmi-imx: Fix bailout in error cases of probe
authorLiu Ying <victor.liu@nxp.com>
Fri, 28 Jan 2022 09:19:44 +0000 (17:19 +0800)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 4 Apr 2022 07:37:42 +0000 (09:37 +0200)
commit240301f2c210cbc595faf5b9eff1ec2d71ba327e
tree9c717f02d966db9fe54430f84759fb9f7af3a06c
parent93be8ae6e153ddd21342bf1198bcb39ee4a36aaf
drm/imx: dw_hdmi-imx: Fix bailout in error cases of probe

In dw_hdmi_imx_probe(), if error happens after dw_hdmi_probe() returns
successfully, dw_hdmi_remove() should be called where necessary as
bailout.

Fixes: d1b95968200a ("drm/imx: dw_hdmi-imx: move initialization into probe")
Cc: Philipp Zabel <p.zabel@pengutronix.de>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Pengutronix Kernel Team <kernel@pengutronix.de>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: NXP Linux Team <linux-imx@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Link: https://lore.kernel.org/r/20220128091944.3831256-1-victor.liu@nxp.com
drivers/gpu/drm/imx/dw_hdmi-imx.c