summaryrefslogtreecommitdiff
path: root/drivers/mfd/ab8500-sysctrl.c
diff options
context:
space:
mode:
authorJonas Aaberg <jonas.aberg@stericsson.com>2011-08-18 10:14:38 +0200
committerLee Jones <lee.jones@linaro.org>2013-02-04 08:28:45 +0000
commit5a4bac6e6331feb0edd9522f3c7bbb9a01571566 (patch)
tree7f42b90fc3148227927242cce38bc0c17b037d69 /drivers/mfd/ab8500-sysctrl.c
parent0903940dcddcaa3f567a1a2308b0c55e2ce0643b (diff)
downloadlinux-3.10-5a4bac6e6331feb0edd9522f3c7bbb9a01571566.tar.gz
linux-3.10-5a4bac6e6331feb0edd9522f3c7bbb9a01571566.tar.bz2
linux-3.10-5a4bac6e6331feb0edd9522f3c7bbb9a01571566.zip
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/ab8500-sysctrl.c b/drivers/mfd/ab8500-sysctrl.c
index 405ca686d9f..3aaff6043e1 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");
}
}