input: keyreset: switch to orderly_reboot
authorEric Ernst <eric.ernst@linux.intel.com>
Fri, 2 Sep 2016 23:12:06 +0000 (16:12 -0700)
committerAmit Pundir <amit.pundir@linaro.org>
Wed, 12 Oct 2016 12:04:22 +0000 (17:34 +0530)
commite931652d1b1a36e4ca5b1defab8e2a8e105c2f83
tree875fe103d1575c3316cbb799f15acdfd89812e3b
parent27d421020677852b44dcb25e87ab8e4cdf843094
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>
drivers/input/keyreset.c