diff options
Diffstat (limited to 'drivers/clocksource/orion.c')
-rw-r--r-- | drivers/clocksource/orion.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/clocksource/orion.c b/drivers/clocksource/orion.c index 46932f1b05..a1dafd84de 100644 --- a/drivers/clocksource/orion.c +++ b/drivers/clocksource/orion.c @@ -49,6 +49,9 @@ static int orion_timer_probe(struct device_d *dev) uint32_t val; timer_base = dev_request_mem_region(dev, 0); + if (IS_ERR(timer_base)) + return PTR_ERR(timer_base); + tclk = clk_get(dev, NULL); /* setup TIMER0 as free-running clock source */ |