[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <165364054751.4207.12591932253297497747.tip-bot2@tip-bot2>
Date: Fri, 27 May 2022 08:35:47 -0000
From: "tip-bot2 for Krzysztof Kozlowski" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>,
Neil Armstrong <narmstrong@...libre.com>,
Daniel Lezcano <daniel.lezcano@...aro.org>, x86@...nel.org,
linux-kernel@...r.kernel.org
Subject: [tip: timers/core] clocksource/drivers/oxnas-rps: Fix
irq_of_parse_and_map() return value
The following commit has been merged into the timers/core branch of tip:
Commit-ID: 9c04a8ff03def4df3f81219ffbe1ec9b44ff5348
Gitweb: https://git.kernel.org/tip/9c04a8ff03def4df3f81219ffbe1ec9b44ff5348
Author: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
AuthorDate: Fri, 22 Apr 2022 12:41:01 +02:00
Committer: Daniel Lezcano <daniel.lezcano@...aro.org>
CommitterDate: Tue, 24 May 2022 09:16:29 +02:00
clocksource/drivers/oxnas-rps: Fix irq_of_parse_and_map() return value
The irq_of_parse_and_map() returns 0 on failure, not a negative ERRNO.
Fixes: 89355274e1f7 ("clocksource/drivers/oxnas-rps: Add Oxford Semiconductor RPS Dual Timer")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
Reviewed-by: Neil Armstrong <narmstrong@...libre.com>
Link: https://lore.kernel.org/r/20220422104101.55754-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Daniel Lezcano <daniel.lezcano@...aro.org>
---
drivers/clocksource/timer-oxnas-rps.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clocksource/timer-oxnas-rps.c b/drivers/clocksource/timer-oxnas-rps.c
index 56c0cc3..d514b44 100644
--- a/drivers/clocksource/timer-oxnas-rps.c
+++ b/drivers/clocksource/timer-oxnas-rps.c
@@ -236,7 +236,7 @@ static int __init oxnas_rps_timer_init(struct device_node *np)
}
rps->irq = irq_of_parse_and_map(np, 0);
- if (rps->irq < 0) {
+ if (!rps->irq) {
ret = -EINVAL;
goto err_iomap;
}
Powered by blists - more mailing lists