|
@@ -970,18 +970,13 @@ static struct i2c_child_t *envctrl_get_i2c_child(unsigned char mon_type)
|
|
|
static void envctrl_do_shutdown(void)
|
|
|
{
|
|
|
static int inprog = 0;
|
|
|
- int ret;
|
|
|
|
|
|
if (inprog != 0)
|
|
|
return;
|
|
|
|
|
|
inprog = 1;
|
|
|
printk(KERN_CRIT "kenvctrld: WARNING: Shutting down the system now.\n");
|
|
|
- ret = orderly_poweroff(true);
|
|
|
- if (ret < 0) {
|
|
|
- printk(KERN_CRIT "kenvctrld: WARNING: system shutdown failed!\n");
|
|
|
- inprog = 0; /* unlikely to succeed, but we could try again */
|
|
|
- }
|
|
|
+ orderly_poweroff(true);
|
|
|
}
|
|
|
|
|
|
static struct task_struct *kenvctrld_task;
|