summaryrefslogtreecommitdiffstats
path: root/drivers/sbus/char/bbc_envctrl.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2006-10-18 04:19:08 +0200
committerDavid S. Miller <davem@sunset.davemloft.net>2006-10-18 04:28:52 +0200
commit872ec6484720e7ddfebb8e15c232fa7ca158ef2e (patch)
tree9e84c253432771168553d6e50b7adb04f8fca5da /drivers/sbus/char/bbc_envctrl.c
parent[SPARC]: Fix some section mismatch warnings in sparc drivers. (diff)
downloadlinux-872ec6484720e7ddfebb8e15c232fa7ca158ef2e.tar.xz
linux-872ec6484720e7ddfebb8e15c232fa7ca158ef2e.zip
[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.c4
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 @@
*/
#include <linux/kthread.h>
-#include <linux/syscalls.h>
#include <linux/delay.h>
+#include <linux/kmod.h>
#include <asm/oplib.h>
#include <asm/ebus.h>
@@ -195,7 +195,7 @@ static void do_envctrl_shutdown(struct bbc_cpu_temperature *tp)
printk(KERN_CRIT "kenvctrld: Shutting down the system now.\n");
shutting_down = 1;
- if (kernel_execve("/sbin/shutdown", argv, envp) < 0)
+ if (call_usermodehelper("/sbin/shutdown", argv, envp, 0) < 0)
printk(KERN_CRIT "envctrl: shutdown execution failed\n");
}