diff options
Diffstat (limited to 'drivers/sbus/char/envctrl.c')
-rw-r--r-- | drivers/sbus/char/envctrl.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/sbus/char/envctrl.c b/drivers/sbus/char/envctrl.c index 728a133d0fc5..fff4660cdf96 100644 --- a/drivers/sbus/char/envctrl.c +++ b/drivers/sbus/char/envctrl.c | |||
@@ -20,16 +20,12 @@ | |||
20 | */ | 20 | */ |
21 | 21 | ||
22 | #include <linux/module.h> | 22 | #include <linux/module.h> |
23 | #include <linux/sched.h> | 23 | #include <linux/init.h> |
24 | #include <linux/kthread.h> | 24 | #include <linux/kthread.h> |
25 | #include <linux/errno.h> | ||
26 | #include <linux/delay.h> | 25 | #include <linux/delay.h> |
27 | #include <linux/ioport.h> | 26 | #include <linux/ioport.h> |
28 | #include <linux/init.h> | ||
29 | #include <linux/miscdevice.h> | 27 | #include <linux/miscdevice.h> |
30 | #include <linux/mm.h> | 28 | #include <linux/kmod.h> |
31 | #include <linux/slab.h> | ||
32 | #include <linux/kernel.h> | ||
33 | 29 | ||
34 | #include <asm/ebus.h> | 30 | #include <asm/ebus.h> |
35 | #include <asm/uaccess.h> | 31 | #include <asm/uaccess.h> |
@@ -980,7 +976,7 @@ static void envctrl_do_shutdown(void) | |||
980 | 976 | ||
981 | inprog = 1; | 977 | inprog = 1; |
982 | printk(KERN_CRIT "kenvctrld: WARNING: Shutting down the system now.\n"); | 978 | printk(KERN_CRIT "kenvctrld: WARNING: Shutting down the system now.\n"); |
983 | ret = kernel_execve("/sbin/shutdown", argv, envp); | 979 | ret = call_usermodehelper("/sbin/shutdown", argv, envp, 0); |
984 | if (ret < 0) { | 980 | if (ret < 0) { |
985 | printk(KERN_CRIT "kenvctrld: WARNING: system shutdown failed!\n"); | 981 | printk(KERN_CRIT "kenvctrld: WARNING: system shutdown failed!\n"); |
986 | inprog = 0; /* unlikely to succeed, but we could try again */ | 982 | inprog = 0; /* unlikely to succeed, but we could try again */ |