imx-hdmi: Propagate the real error code on platform_get_irq() failure
authorFabio Estevam <fabio.estevam@freescale.com>
Sat, 5 Apr 2014 15:40:45 +0000 (12:40 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Apr 2014 23:11:03 +0000 (16:11 -0700)
No need to return a 'fake' return value on platform_get_irq() failure.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/imx-drm/imx-hdmi.c

index 13071330acadf8df1c281901aa75f8408138d415..0e638210d8275d62236a9a77de48fefac5220d5f 100644 (file)
@@ -1625,7 +1625,7 @@ static int imx_hdmi_bind(struct device *dev, struct device *master, void *data)
 
        irq = platform_get_irq(pdev, 0);
        if (irq < 0)
-               return -EINVAL;
+               return irq;
 
        ret = devm_request_threaded_irq(dev, irq, imx_hdmi_hardirq,
                                        imx_hdmi_irq, IRQF_SHARED,