mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-26 07:44:27 +08:00
clocksource/drivers/h8300_timer8: Fix irq return value check
The value returned in case of error for the 'irq_of_parse_and_map' function is zero in case of error. Fix the check in the init code. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
This commit is contained in:
parent
1f058d52b3
commit
54a0cd5a7e
@ -230,7 +230,7 @@ static void __init h8300_8timer_init(struct device_node *node)
|
||||
}
|
||||
|
||||
irq = irq_of_parse_and_map(node, 0);
|
||||
if (irq < 0) {
|
||||
if (!irq) {
|
||||
pr_err("failed to get irq for clockevent\n");
|
||||
goto unmap_reg;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user