]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/dsi: Fix missing put_device() call in dsi_get_phy
authorMiaoqian Lin <linmq006@gmail.com>
Thu, 30 Dec 2021 07:09:40 +0000 (07:09 +0000)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tue, 25 Jan 2022 02:43:40 +0000 (05:43 +0300)
commit0d8befe59e1297a236690a8b53612323b569b436
tree9659c37088ef6d9757253285c56e330731df613c
parente978042df3fcc6e20d3808845187698a542b21c2
drm/msm/dsi: Fix missing put_device() call in dsi_get_phy

If of_find_device_by_node() succeeds, dsi_get_phy() doesn't
a corresponding put_device(). Thus add put_device() to fix the exception
handling.

Fixes: a180029 ("drm/msm/dsi: Separate PHY to another platform device")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20211230070943.18116-1-linmq006@gmail.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/dsi/dsi.c