[SPARC] {bbc_,}envctrl: Use call_usermodehelper().
[firefly-linux-kernel-4.4.55.git] / drivers / sbus / char / bbc_envctrl.c
index 0d3660c28f7d496840598b908ff909ec753c8c7a..a54e4140683aea238d28e48f50621e801c7d9450 100644 (file)
@@ -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");
 }