diff options
Diffstat (limited to 'drivers/clocksource/clps711x.c')
-rw-r--r-- | drivers/clocksource/clps711x.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clocksource/clps711x.c b/drivers/clocksource/clps711x.c index 8c379d39ec..a49853f2b5 100644 --- a/drivers/clocksource/clps711x.c +++ b/drivers/clocksource/clps711x.c @@ -38,9 +38,9 @@ static int clps711x_cs_probe(struct device_d *dev) rate = clk_get_rate(timer_clk); clps711x_timer_base = dev_request_mem_region(dev, 0); - if (!clps711x_timer_base) { + if (IS_ERR(clps711x_timer_base)) { clk_put(timer_clk); - return -ENOENT; + return PTR_ERR(clps711x_timer_base); } clocks_calc_mult_shift(&clps711x_cs.mult, &clps711x_cs.shift, rate, |