[PATCH] clocksourc: Fix the comments to __clocksource_register_scale

From: Hailong Liu
Date: Sat Mar 06 2021 - 07:59:59 EST


From: Hailong Liu <liu.hailong6@xxxxxxxxxx>

The return value of __clocksource_register_scale() is awlays 0, which does
not match the comments.

Signed-off-by: Hailong Liu <liu.hailong6@xxxxxxxxxx>
---
kernel/time/clocksource.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c
index cce484a2cc7c..1e1b5df724f4 100644
--- a/kernel/time/clocksource.c
+++ b/kernel/time/clocksource.c
@@ -909,7 +909,7 @@ EXPORT_SYMBOL_GPL(__clocksource_update_freq_scale);
* @scale: Scale factor multiplied against freq to get clocksource hz
* @freq: clocksource frequency (cycles per second) divided by scale
*
- * Returns -EBUSY if registration fails, zero otherwise.
+ * Returns 0 always.
*
* This *SHOULD NOT* be called directly! Please use the
* clocksource_register_hz() or clocksource_register_khz helper functions.
--
2.17.1