]> git.baikalelectronics.ru Git - kernel.git/commit
drm/mediatek: Add missing put_device() call in mtk_ddp_comp_init()
authorYu Kuai <yukuai3@huawei.com>
Sat, 5 Sep 2020 08:30:58 +0000 (16:30 +0800)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Wed, 16 Sep 2020 22:58:01 +0000 (06:58 +0800)
commit987af77bd4ac650c80985fdf812ba030b32211df
treeed0469153be650d268c831bd766323cfbbc4c6a1
parent4b04c1ba32e043144cfe979b00aef9d3a7883079
drm/mediatek: Add missing put_device() call in mtk_ddp_comp_init()

if of_find_device_by_node() succeed, mtk_ddp_comp_init() doesn't have
a corresponding put_device(). Thus add put_device() to fix the exception
handling for this function implementation.

Fixes: 0864cc93082e ("drm/mediatek: support CMDQ interface in ddp component")
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c