Skip to content

Commit 9c04a8f

Browse files
krzkdlezcano
authored andcommitted
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: 8935527 ("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]>
1 parent 8c0d946 commit 9c04a8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clocksource/timer-oxnas-rps.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ static int __init oxnas_rps_timer_init(struct device_node *np)
236236
}
237237

238238
rps->irq = irq_of_parse_and_map(np, 0);
239-
if (rps->irq < 0) {
239+
if (!rps->irq) {
240240
ret = -EINVAL;
241241
goto err_iomap;
242242
}

0 commit comments

Comments
 (0)