diff options
author | Jonas Aaberg <jonas.aberg@stericsson.com> | 2011-08-18 04:14:38 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2013-02-04 03:28:45 -0500 |
commit | 5a4bac6e6331feb0edd9522f3c7bbb9a01571566 (patch) | |
tree | 7f42b90fc3148227927242cce38bc0c17b037d69 /drivers/mfd/ab8500-sysctrl.c | |
parent | 0903940dcddcaa3f567a1a2308b0c55e2ce0643b (diff) |
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/ab8500-sysctrl.c')
-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 405ca686d9f3..3aaff6043e18 100644 --- a/drivers/mfd/ab8500-sysctrl.c +++ b/drivers/mfd/ab8500-sysctrl.c | |||
@@ -59,7 +59,7 @@ void ab8500_power_off(void) | |||
59 | "Charger \"%s\" is connected with known battery." | 59 | "Charger \"%s\" is connected with known battery." |
60 | " Rebooting.\n", | 60 | " Rebooting.\n", |
61 | pss[i]); | 61 | pss[i]); |
62 | machine_restart(NULL); | 62 | machine_restart("charging"); |
63 | } | 63 | } |
64 | } | 64 | } |
65 | 65 | ||