diff options
author | Krzysztof Kozlowski <[email protected]> | 2022-04-22 12:41:01 +0200 |
---|---|---|
committer | Daniel Lezcano <[email protected]> | 2022-05-24 09:16:29 +0200 |
commit | 9c04a8ff03def4df3f81219ffbe1ec9b44ff5348 (patch) | |
tree | ea4591ebe6bdd6dea8286c4eef6cc7906716acb3 | |
parent | 8c0d9461ab760439b09ae321803ee85df1136e08 (diff) |
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 <[email protected]>
Reviewed-by: Neil Armstrong <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Daniel Lezcano <[email protected]>
-rw-r--r-- | drivers/clocksource/timer-oxnas-rps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clocksource/timer-oxnas-rps.c b/drivers/clocksource/timer-oxnas-rps.c index 56c0cc32d0ac..d514b44e67dd 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; } |