diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-10-17 22:19:08 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-10-17 22:28:52 -0400 |
commit | 872ec6484720e7ddfebb8e15c232fa7ca158ef2e (patch) | |
tree | 9e84c253432771168553d6e50b7adb04f8fca5da /drivers/sbus/char/bbc_envctrl.c | |
parent | b48194bf0dc0f8e2b617fab10df885513fbb3bad (diff) |
[SPARC] {bbc_,}envctrl: Use call_usermodehelper().
We should not be calling kernel_execve() directly and this
causes module build failures because kernel_execve() is not
exported to modules.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/sbus/char/bbc_envctrl.c')
-rw-r--r-- | drivers/sbus/char/bbc_envctrl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/sbus/char/bbc_envctrl.c b/drivers/sbus/char/bbc_envctrl.c index 0d3660c28f7d..a54e4140683a 100644 --- a/drivers/sbus/char/bbc_envctrl.c +++ b/drivers/sbus/char/bbc_envctrl.c | |||
@@ -5,8 +5,8 @@ | |||
5 | */ | 5 | */ |
6 | 6 | ||
7 | #include <linux/kthread.h> | 7 | #include <linux/kthread.h> |
8 | #include <linux/syscalls.h> | ||
9 | #include <linux/delay.h> | 8 | #include <linux/delay.h> |
9 | #include <linux/kmod.h> | ||
10 | #include <asm/oplib.h> | 10 | #include <asm/oplib.h> |
11 | #include <asm/ebus.h> | 11 | #include <asm/ebus.h> |
12 | 12 | ||
@@ -195,7 +195,7 @@ static void do_envctrl_shutdown(struct bbc_cpu_temperature *tp) | |||
195 | printk(KERN_CRIT "kenvctrld: Shutting down the system now.\n"); | 195 | printk(KERN_CRIT "kenvctrld: Shutting down the system now.\n"); |
196 | 196 | ||
197 | shutting_down = 1; | 197 | shutting_down = 1; |
198 | if (kernel_execve("/sbin/shutdown", argv, envp) < 0) | 198 | if (call_usermodehelper("/sbin/shutdown", argv, envp, 0) < 0) |
199 | printk(KERN_CRIT "envctrl: shutdown execution failed\n"); | 199 | printk(KERN_CRIT "envctrl: shutdown execution failed\n"); |
200 | } | 200 | } |
201 | 201 | ||