From: Russell King Date: Sat, 3 Sep 2016 09:21:51 +0000 (+0100) Subject: ARM: sa1111: fix error code propagation in sa1111_probe() X-Git-Tag: v4.8~1^2~6^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cb034407ec3f816540f359300cda1122faabdbbd;p=platform%2Fkernel%2Flinux-exynos.git 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 --- diff --git a/arch/arm/common/sa1111.c b/arch/arm/common/sa1111.c index fb0a0a4..332b923 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) return -EINVAL; irq = platform_get_irq(pdev, 0); if (irq < 0) - return -ENXIO; + return irq; return __sa1111_probe(&pdev->dev, mem, irq); }