From: Jonas Aaberg <jonas.ab...@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.jo...@linaro.org>
Signed-off-by: Jonas Aaberg <jonas.ab...@stericsson.com>
Reviewed-by: Karl KOMIEROWSKI <karl.komierow...@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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to