提交 cdafb93f 编写于 作者: F Fabian Frederick 提交者: John Stultz

ntp: Convert simple_strtol to kstrtol

Replace obsolete function simple_strtol w/ kstrtol
Inspired-By: NAndrew Morton <akpm@linux-foundation.org>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: NFabian Frederick <fabf@skynet.be>
[jstultz: Tweak commit message]
Signed-off-by: NJohn Stultz <john.stultz@linaro.org>
上级 c04ae71c
...@@ -923,7 +923,10 @@ void __hardpps(const struct timespec *phase_ts, const struct timespec *raw_ts) ...@@ -923,7 +923,10 @@ void __hardpps(const struct timespec *phase_ts, const struct timespec *raw_ts)
static int __init ntp_tick_adj_setup(char *str) static int __init ntp_tick_adj_setup(char *str)
{ {
ntp_tick_adj = simple_strtol(str, NULL, 0); int rc = kstrtol(str, 0, (long *)&ntp_tick_adj);
if (rc)
return rc;
ntp_tick_adj <<= NTP_SCALE_SHIFT; ntp_tick_adj <<= NTP_SCALE_SHIFT;
return 1; return 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册