aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clocksource/timer-of.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/clocksource/timer-of.c')
-rw-r--r--drivers/clocksource/timer-of.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clocksource/timer-of.c b/drivers/clocksource/timer-of.c
index 64b1c2081a67..f6e7491c873c 100644
--- a/drivers/clocksource/timer-of.c
+++ b/drivers/clocksource/timer-of.c
@@ -120,7 +120,7 @@ static __init int timer_base_init(struct device_node *np,
120 const char *name = of_base->name ? of_base->name : np->full_name; 120 const char *name = of_base->name ? of_base->name : np->full_name;
121 121
122 of_base->base = of_io_request_and_map(np, of_base->index, name); 122 of_base->base = of_io_request_and_map(np, of_base->index, name);
123 if (of_base->base) { 123 if (!of_base->base) {
124 pr_err("Failed to iomap (%s)\n", name); 124 pr_err("Failed to iomap (%s)\n", name);
125 return -ENXIO; 125 return -ENXIO;
126 } 126 }