forked from Minki/linux
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 <fabio.estevam@freescale.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0e6bcf3a15
commit
539e26cbbd
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user