summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorEric Ernst <eric.ernst@linux.intel.com>2016-09-02 16:12:06 -0700
committerDmitry Shmidt <dimitrysh@google.com>2016-09-20 17:39:47 +0000
commitfa42b29f530e15078b4e3070fd62e310211ee3de (patch)
treec8df1788d33b7218628383fbd9aa40ed535be7ae /drivers
parent17e35cbf1863e5cf74425594056ef28b18f762bf (diff)
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 <eric.ernst@linux.intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/input/keyreset.c3
1 files changed, 1 insertions, 2 deletions
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)