[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20200901025412.39128-1-tian.xianting@h3c.com>
Date: Tue, 1 Sep 2020 10:54:12 +0800
From: Xianting Tian <tian.xianting@....com>
To: <ysato@...rs.sourceforge.jp>, <daniel.lezcano@...aro.org>,
<tglx@...utronix.de>
CC: <uclinux-h8-devel@...ts.sourceforge.jp>,
<linux-kernel@...r.kernel.org>,
Xianting Tian <tian.xianting@....com>
Subject: [PATCH] clocksource: return negative error code
A negative error code should be returned
Signed-off-by: Xianting Tian <tian.xianting@....com>
---
drivers/clocksource/h8300_timer8.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clocksource/h8300_timer8.c b/drivers/clocksource/h8300_timer8.c
index 1d740a8c4..47114c2a7 100644
--- a/drivers/clocksource/h8300_timer8.c
+++ b/drivers/clocksource/h8300_timer8.c
@@ -169,7 +169,7 @@ static int __init h8300_8timer_init(struct device_node *node)
return PTR_ERR(clk);
}
- ret = ENXIO;
+ ret = -ENXIO;
base = of_iomap(node, 0);
if (!base) {
pr_err("failed to map registers for clockevent\n");
--
2.17.1
Powered by blists - more mailing lists