diff options
-rw-r--r-- | drivers/clocksource/dw_apb_timer_of.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clocksource/dw_apb_timer_of.c b/drivers/clocksource/dw_apb_timer_of.c index ab09ed3742ee..6b02eddc5f50 100644 --- a/drivers/clocksource/dw_apb_timer_of.c +++ b/drivers/clocksource/dw_apb_timer_of.c | |||
@@ -44,7 +44,7 @@ static void add_clockevent(struct device_node *event_timer) | |||
44 | u32 irq, rate; | 44 | u32 irq, rate; |
45 | 45 | ||
46 | irq = irq_of_parse_and_map(event_timer, 0); | 46 | irq = irq_of_parse_and_map(event_timer, 0); |
47 | if (irq == NO_IRQ) | 47 | if (irq == 0) |
48 | panic("No IRQ for clock event timer"); | 48 | panic("No IRQ for clock event timer"); |
49 | 49 | ||
50 | timer_get_base_and_rate(event_timer, &iobase, &rate); | 50 | timer_get_base_and_rate(event_timer, &iobase, &rate); |