Skip to content

Commit

Permalink
mfd: ab8500-sysctrl.c: Provide charging as reset reason
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jonas Aaberg authored and Lee Jones committed Feb 4, 2013
1 parent 0903940 commit 5a4bac6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mfd/ab8500-sysctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}

Expand Down

0 comments on commit 5a4bac6

Please sign in to comment.