aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2014-02-19 00:41:44 -0500
committerNitin Garg <nitin.garg@freescale.com>2014-04-16 09:58:01 -0400
commitf958d29fd6e7cd522625a824df5349ea33067942 (patch)
tree2639b4e3eded57329d28f7676172b7a878b70372
parent1a72b128812847d2ab426e044b0db65b8c2e3d2a (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c
index 36cada7ae4c6..54e0830ed04c 100644
--- a/drivers/usb/chipidea/core.c
+++ b/drivers/usb/chipidea/core.c
@@ -623,7 +623,7 @@ static int ci_hdrc_probe(struct platform_device *pdev)
623 ci->irq = platform_get_irq(pdev, 0); 623 ci->irq = platform_get_irq(pdev, 0);
624 if (ci->irq < 0) { 624 if (ci->irq < 0) {
625 dev_err(dev, "missing IRQ\n"); 625 dev_err(dev, "missing IRQ\n");
626 ret = -ENODEV; 626 ret = ci->irq;
627 goto deinit_phy; 627 goto deinit_phy;
628 } 628 }
629 629