drm/mediatek: Add missing put_device() call in mtk_hdmi_dt_parse_pdata()
authorYu Kuai <yukuai3@huawei.com>
Fri, 11 Sep 2020 11:21:51 +0000 (19:21 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Sep 2020 10:59:57 +0000 (12:59 +0200)
commite1ddb18d2161b5d4ee026e94762f30765d5c05d8
tree967ec711f2b2cf4c9e5b1bf3b5dcaccea27eb249
parentd1025c54ecfde35ed07512ef975648de5d1d84ad
drm/mediatek: Add missing put_device() call in mtk_hdmi_dt_parse_pdata()

[ Upstream commit 0680a622318b8d657323b94082f4b9a44038dfee ]

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

Fixes: 8f83f26891e1 ("drm/mediatek: Add HDMI support")
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/mediatek/mtk_hdmi.c