[PATCH] replace cad_pid by a struct pid
[firefly-linux-kernel-4.4.55.git] / arch / mips / sgi-ip32 / ip32-reset.c
index 79ddb460565955a60864472b818ef2d00808fef7..fd0932b2d5218ef58a08a79056c5f2af68c23d61 100644 (file)
@@ -120,7 +120,7 @@ static inline void ip32_power_button(void)
        if (has_panicked)
                return;
 
-       if (shuting_down || kill_proc(1, SIGINT, 1)) {
+       if (shuting_down || kill_cad_pid(SIGINT, 1)) {
                /* No init process or button pressed twice.  */
                ip32_machine_power_off();
        }