projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9395452
)
ARM: sa1111: fix error code propagation in sa1111_probe()
author
Russell King
<
[email protected]
>
Sat, 3 Sep 2016 09:21:51 +0000
(10:21 +0100)
committer
Russell King
<
[email protected]
>
Mon, 12 Sep 2016 10:04:03 +0000
(11:04 +0100)
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 <
[email protected]
>
arch/arm/common/sa1111.c
patch
|
blob
|
history
diff --git
a/arch/arm/common/sa1111.c
b/arch/arm/common/sa1111.c
index fb0a0a4dfea4da26fd635ccbad4a06de0a72ce94..332b92317fd8a89fe074055278b54e3b2c1f914c 100644
(file)
--- 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);
}