diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2014-02-19 13:41:44 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-24 17:07:53 -0800 |
commit | 42d182124801573e06284200d81c3963962e753d (patch) | |
tree | b3dc45220e973e22ef5d79832b4c635fe1e72b2b /drivers/usb/chipidea/core.c | |
parent | 4f6743d5ca97ac66831add302cc5467db4ee3809 (diff) | |
download | blackbird-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/usb/chipidea/core.c')
-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) 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; } |