diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2014-02-19 00:41:44 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-24 20:07:53 -0500 |
commit | 42d182124801573e06284200d81c3963962e753d (patch) | |
tree | b3dc45220e973e22ef5d79832b4c635fe1e72b2b | |
parent | 4f6743d5ca97ac66831add302cc5467db4ee3809 (diff) |
usb: chipidea: Propagate the real error code on platform_get_irq() failure
No need to return a 'fake' return value on platform_get_irq() failure.
Just return the error code itself instead.
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/usb/chipidea/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c index 65aeaacda6cd..ca6831c5b763 100644 --- a/drivers/usb/chipidea/core.c +++ b/drivers/usb/chipidea/core.c | |||
@@ -575,7 +575,7 @@ static int ci_hdrc_probe(struct platform_device *pdev) | |||
575 | ci->irq = platform_get_irq(pdev, 0); | 575 | ci->irq = platform_get_irq(pdev, 0); |
576 | if (ci->irq < 0) { | 576 | if (ci->irq < 0) { |
577 | dev_err(dev, "missing IRQ\n"); | 577 | dev_err(dev, "missing IRQ\n"); |
578 | ret = -ENODEV; | 578 | ret = ci->irq; |
579 | goto deinit_phy; | 579 | goto deinit_phy; |
580 | } | 580 | } |
581 | 581 | ||