rk3036 hdmi: init hdmi before request irq
authorhjc <hjc@rock-chips.com>
Tue, 15 Jul 2014 01:05:29 +0000 (09:05 +0800)
committerhjc <hjc@rock-chips.com>
Tue, 15 Jul 2014 01:06:02 +0000 (09:06 +0800)
drivers/video/rockchip/hdmi/chips/rk616/rk616_hdmi.c

index c205afec9d132ca5dbc011fb003ff2fff1d398ed..1a5f5be79ecd45eb6965bb58788540601687288a 100755 (executable)
@@ -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);