projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7351b4
)
pinctrl: stmfx: Do not check for 0 return after calling platform_get_irq()
author
Ruan Jinjie
<ruanjinjie@huawei.com>
Thu, 3 Aug 2023 09:43:04 +0000
(17:43 +0800)
committer
Linus Walleij
<linus.walleij@linaro.org>
Thu, 10 Aug 2023 08:11:33 +0000
(10:11 +0200)
Since commit
ce753ad1549c
("platform: finally disallow IRQ0 in
platform_get_irq() and its ilk"), there is no possible for
platform_get_irq() to return 0. Use the return value
from platform_get_irq().
Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
Link:
https://lore.kernel.org/r/20230803094304.733371-1-ruanjinjie@huawei.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-stmfx.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/pinctrl-stmfx.c
b/drivers/pinctrl/pinctrl-stmfx.c
index ab23d7ac3107ed00492e329f5f1a06b6369e1be9..0974bbf57b54d2e1a1bb7700de85a1193444f732 100644
(file)
--- a/
drivers/pinctrl/pinctrl-stmfx.c
+++ b/
drivers/pinctrl/pinctrl-stmfx.c
@@
-659,8
+659,8
@@
static int stmfx_pinctrl_probe(struct platform_device *pdev)
}
irq = platform_get_irq(pdev, 0);
- if (irq <
=
0)
- return
-ENXIO
;
+ if (irq < 0)
+ return
irq
;
mutex_init(&pctl->lock);