Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cdafb93f authored by Fabian Frederick's avatar Fabian Frederick Committed by John Stultz
Browse files

ntp: Convert simple_strtol to kstrtol



Replace obsolete function simple_strtol w/ kstrtol

Inspired-By: default avatarAndrew Morton <akpm@linux-foundation.org>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
[jstultz: Tweak commit message]
Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
parent c04ae71c
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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)
{
	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;

	return 1;