[PATCH 04/26] mfd: ab8500-sysctrl.c: Provide charging as reset reason
Lee Jones
lee.jones at linaro.org
Tue Jan 15 07:55:44 EST 2013
From: Jonas Aaberg <jonas.aberg at stericsson.com>
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 at linaro.org>
Signed-off-by: Jonas Aaberg <jonas.aberg at stericsson.com>
Reviewed-by: Karl KOMIEROWSKI <karl.komierowski at stericsson.com>
---
drivers/mfd/ab8500-sysctrl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mfd/ab8500-sysctrl.c b/drivers/mfd/ab8500-sysctrl.c
index 26216e7..cf58f69 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");
}
}
--
1.7.9.5
More information about the linux-arm-kernel
mailing list