From: Eric Ernst Date: Fri, 2 Sep 2016 23:12:06 +0000 (-0700) Subject: ANDROID: input: keyreset: switch to orderly_reboot X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3ed870f4b0c746b94dd9c677c4a37dfb3db5fa01;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ANDROID: input: keyreset: switch to orderly_reboot Prior restart function would make a call to sys_sync and then execute a kernel reset. Rather than call the sync directly, thus necessitating this driver to be builtin, call orderly_reboot, which will take care of the file system sync. Note: since CONFIG_INPUT Kconfig is tristate, this driver can be built as module, despite being marked bool. Signed-off-by: Eric Ernst --- diff --git a/drivers/input/keyreset.c b/drivers/input/keyreset.c index 7fbf7247e65f..7e5222aec7c1 100644 --- a/drivers/input/keyreset.c +++ b/drivers/input/keyreset.c @@ -32,8 +32,7 @@ struct keyreset_state { static void do_restart(struct work_struct *unused) { - sys_sync(); - kernel_restart(NULL); + orderly_reboot(); } static void do_reset_fn(void *priv)