From 827ac7bbce91aa8ef29eca2e7ccd637700d0359c Mon Sep 17 00:00:00 2001 From: Chen Shunqing Date: Sat, 15 Apr 2023 07:32:10 +0000 Subject: [PATCH] media: rockchip: hdmirx: fix code error for cec register failed Change-Id: I0174fef279b8efc0eb16f31b427faab144eabc67 Signed-off-by: Chen Shunqing --- drivers/media/platform/rockchip/hdmirx/rk_hdmirx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/rockchip/hdmirx/rk_hdmirx.c b/drivers/media/platform/rockchip/hdmirx/rk_hdmirx.c index eef3efaed204..a098f857407d 100644 --- a/drivers/media/platform/rockchip/hdmirx/rk_hdmirx.c +++ b/drivers/media/platform/rockchip/hdmirx/rk_hdmirx.c @@ -4316,7 +4316,7 @@ static int hdmirx_probe(struct platform_device *pdev) hdmirx_dev->cec_notifier = cec_notifier_conn_register(dev, NULL, NULL); if (!hdmirx_dev->cec_notifier) { ret = -ENOMEM; - goto err_hdl; + goto err_unreg_video_dev; } irq = platform_get_irq_byname(pdev, "cec"); @@ -4324,7 +4324,7 @@ static int hdmirx_probe(struct platform_device *pdev) dev_err(dev, "get hdmi cec irq failed!\n"); cec_notifier_conn_unregister(hdmirx_dev->cec_notifier); ret = irq; - goto err_hdl; + goto err_unreg_video_dev; } cpumask_clear(&cpumask); cpumask_set_cpu(hdmirx_dev->bound_cpu, &cpumask);