diff options
author | Jonas Aaberg <jonas.aberg@stericsson.com> | 2011-08-18 10:14:38 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2013-02-04 08:28:45 +0000 |
commit | 5a4bac6e6331feb0edd9522f3c7bbb9a01571566 (patch) | |
tree | 7f42b90fc3148227927242cce38bc0c17b037d69 /drivers/mfd | |
parent | 0903940dcddcaa3f567a1a2308b0c55e2ce0643b (diff) | |
download | op-kernel-dev-5a4bac6e6331feb0edd9522f3c7bbb9a01571566.zip op-kernel-dev-5a4bac6e6331feb0edd9522f3c7bbb9a01571566.tar.gz |
mfd: ab8500-sysctrl.c: Provide charging as reset reason
It's possible to supply a string to provide a reason for
triggering a restart. In this case our reason is to enter
charging-only mode, as a charger was found to be present.
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
Reviewed-by: Karl KOMIEROWSKI <karl.komierowski@stericsson.com>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/ab8500-sysctrl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/ab8500-sysctrl.c b/drivers/mfd/ab8500-sysctrl.c index 405ca68..3aaff60 100644 --- a/drivers/mfd/ab8500-sysctrl.c +++ b/drivers/mfd/ab8500-sysctrl.c @@ -59,7 +59,7 @@ void ab8500_power_off(void) "Charger \"%s\" is connected with known battery." " Rebooting.\n", pss[i]); - machine_restart(NULL); + machine_restart("charging"); } } |