drm/sun4i: add missing put_device() call in sun8i_r40_tcon_tv_set_mux()
authorYu Kuai <yukuai3@huawei.com>
Wed, 26 Aug 2020 01:08:26 +0000 (09:08 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Sep 2020 11:55:27 +0000 (13:55 +0200)
commit9abd480dbf3bdac071b944ecceb6f6932e1f8495
tree98dfb1ba504c4f647bccc14b99501e1455bdb842
parent6716ed0d4e1139bb30e473395fc712af821fcac0
drm/sun4i: add missing put_device() call in sun8i_r40_tcon_tv_set_mux()

[ Upstream commit 07b5b12d97dc9f47ff3dff46c4f944a15bd762e5 ]

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

Fixes: 0305189afb32 ("drm/sun4i: tcon: Add support for R40 TCON")
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20200826010826.1785487-1-yukuai3@huawei.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/sun4i/sun4i_tcon.c