From b6aaebb4c59998ba30ce56e14fb048eb36bea771 Mon Sep 17 00:00:00 2001 From: hjc Date: Tue, 15 Jul 2014 09:05:29 +0800 Subject: [PATCH] rk3036 hdmi: init hdmi before request irq --- drivers/video/rockchip/hdmi/chips/rk616/rk616_hdmi.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/video/rockchip/hdmi/chips/rk616/rk616_hdmi.c b/drivers/video/rockchip/hdmi/chips/rk616/rk616_hdmi.c index c205afec9d13..1a5f5be79ecd 100755 --- a/drivers/video/rockchip/hdmi/chips/rk616/rk616_hdmi.c +++ b/drivers/video/rockchip/hdmi/chips/rk616/rk616_hdmi.c @@ -388,6 +388,8 @@ static int rk616_hdmi_probe(struct platform_device *pdev) ret); goto err2; } + if (rk616_hdmi_drv_init(hdmi_drv)) + goto err0; /* get the IRQ */ hdmi_drv->irq = platform_get_irq(pdev, 0); @@ -426,6 +428,8 @@ static int rk616_hdmi_probe(struct platform_device *pdev) ret = -ENXIO; goto err1; } + if (rk616_hdmi_drv_init(hdmi_drv)) + goto err0; /* request the IRQ */ ret = devm_request_irq(hdmi_drv->dev, hdmi_drv->irq, @@ -443,8 +447,6 @@ static int rk616_hdmi_probe(struct platform_device *pdev) } #endif - if (rk616_hdmi_drv_init(hdmi_drv)) - goto err0; //rk616_hdmi_work(hdmi_drv); -- 2.34.1