From: Fabio Estevam Date: Sat, 5 Apr 2014 15:40:45 +0000 (-0300) Subject: imx-hdmi: Propagate the real error code on platform_get_irq() failure X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=539e26cbbd9070d14e25db025fb716cda1cd07da;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git imx-hdmi: Propagate the real error code on platform_get_irq() failure No need to return a 'fake' return value on platform_get_irq() failure. Signed-off-by: Fabio Estevam Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/imx-drm/imx-hdmi.c b/drivers/staging/imx-drm/imx-hdmi.c index 13071330acad..0e638210d827 100644 --- a/drivers/staging/imx-drm/imx-hdmi.c +++ b/drivers/staging/imx-drm/imx-hdmi.c @@ -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,