summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2014-02-19 13:41:44 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-02-24 17:07:53 -0800
commit42d182124801573e06284200d81c3963962e753d (patch)
treeb3dc45220e973e22ef5d79832b4c635fe1e72b2b /drivers
parent4f6743d5ca97ac66831add302cc5467db4ee3809 (diff)
downloadblackbird-op-linux-42d182124801573e06284200d81c3963962e753d.tar.gz
blackbird-op-linux-42d182124801573e06284200d81c3963962e753d.zip
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/chipidea/core.c2
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)
ci->irq = platform_get_irq(pdev, 0);
if (ci->irq < 0) {
dev_err(dev, "missing IRQ\n");
- ret = -ENODEV;
+ ret = ci->irq;
goto deinit_phy;
}
OpenPOWER on IntegriCloud