summaryrefslogtreecommitdiff
path: root/drivers/clocksource/asm9260_timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/clocksource/asm9260_timer.c')
-rw-r--r--drivers/clocksource/asm9260_timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clocksource/asm9260_timer.c b/drivers/clocksource/asm9260_timer.c
index 2c9c99372..4c2ba5989 100644
--- a/drivers/clocksource/asm9260_timer.c
+++ b/drivers/clocksource/asm9260_timer.c
@@ -178,7 +178,7 @@ static void __init asm9260_timer_init(struct device_node *np)
unsigned long rate;
priv.base = of_io_request_and_map(np, 0, np->name);
- if (!priv.base)
+ if (IS_ERR(priv.base))
panic("%s: unable to map resource", np->name);
clk = of_clk_get(np, 0);