aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2016-09-03 05:21:51 -0400
committerRussell King <rmk+kernel@armlinux.org.uk>2016-09-12 06:04:03 -0400
commitcb034407ec3f816540f359300cda1122faabdbbd (patch)
tree2229f4abb2f009e3e503bb586dde6a8130a3c4ba
parent9395452b4aab7bc2475ef8935b4a4fb99d778d70 (diff)
ARM: sa1111: fix error code propagation in sa1111_probe()
Ensure that we propagate the platform_get_irq() error code out of the probe function. This allows probe deferrals to work correctly should platform_get_irq() not be able to resolve the interrupt in a DT environment at probe time. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
-rw-r--r--arch/arm/common/sa1111.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/common/sa1111.c b/arch/arm/common/sa1111.c
index fb0a0a4dfea4..332b92317fd8 100644
--- a/arch/arm/common/sa1111.c
+++ b/arch/arm/common/sa1111.c
@@ -1017,7 +1017,7 @@ static int sa1111_probe(struct platform_device *pdev)
1017 return -EINVAL; 1017 return -EINVAL;
1018 irq = platform_get_irq(pdev, 0); 1018 irq = platform_get_irq(pdev, 0);
1019 if (irq < 0) 1019 if (irq < 0)
1020 return -ENXIO; 1020 return irq;
1021 1021
1022 return __sa1111_probe(&pdev->dev, mem, irq); 1022 return __sa1111_probe(&pdev->dev, mem, irq);
1023} 1023}