]> git.baikalelectronics.ru Git - kernel.git/commit
drm/mediatek: Add exception handing in mtk_drm_probe() if component init fail
authorYu Kuai <yukuai3@huawei.com>
Wed, 9 Sep 2020 08:49:42 +0000 (16:49 +0800)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Wed, 16 Sep 2020 22:58:01 +0000 (06:58 +0800)
commit750759bdabe4538555c1724da81e2d618556a29f
tree95d707133bd37eb86c5bedf346f60751442778e9
parent987af77bd4ac650c80985fdf812ba030b32211df
drm/mediatek: Add exception handing in mtk_drm_probe() if component init fail

mtk_ddp_comp_init() is called in a loop in mtk_drm_probe(), if it
fail, previous successive init component is not proccessed.

Thus uninitialize valid component and put their device if component
init failed.

Fixes: 8f0f8d0f3cce ("drm/mediatek: Add DRM Driver for Mediatek SoC MT8173.")
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_drm_drv.c