drm/msm/hdmi: Fix the error handling path of msm_hdmi_dev_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 13 Dec 2022 06:15:33 +0000 (07:15 +0100)
committerAbhinav Kumar <quic_abhinavk@quicinc.com>
Wed, 28 Dec 2022 02:00:26 +0000 (18:00 -0800)
commit4164843261d28f86910a5c2727faddce066334c5
tree67d0b40c91425c706d25e5b19a598d5361cf182d
parent45dac1352b55b1d8cb17f218936b2bc2bc1fb4ee
drm/msm/hdmi: Fix the error handling path of msm_hdmi_dev_probe()

If an error occurs after a successful msm_hdmi_get_phy() call, it must be
undone by a corresponding msm_hdmi_put_phy(), as already done in the
remove function.

Fixes: 437365464043 ("drm/msm/hdmi: move msm_hdmi_get_phy() to msm_hdmi_dev_probe()")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/514847/
Link: https://lore.kernel.org/r/b3f9da097851e2e42a40dc61458aa98c41c88d0d.1670741386.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
drivers/gpu/drm/msm/hdmi/hdmi.c