Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

clocksource/drivers/h8300_timer8: Fix wrong return value in h8300_8timer_init()

In the init function, if the call to of_iomap() fails, the return
value is ENXIO instead of -ENXIO.

Change to the right negative errno.

Fixes: 691f8f878290f ("clocksource/drivers/h8300_timer8: Convert init function to return error")
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200802111541.5429-1-tianjia.zhang@linux.alibaba.com

authored by

Tianjia Zhang and committed by
Daniel Lezcano
400d033f b0294f30

+1 -1
+1 -1
drivers/clocksource/h8300_timer8.c
··· 169 169 return PTR_ERR(clk); 170 170 } 171 171 172 - ret = ENXIO; 172 + ret = -ENXIO; 173 173 base = of_iomap(node, 0); 174 174 if (!base) { 175 175 pr_err("failed to map registers for clockevent\n");