of: Support using 'mask' in making device bus id
[linux-2.6-microblaze.git] / drivers / firmware / stratix10-svc.c
index 2a76879..29c0a61 100644 (file)
@@ -520,7 +520,7 @@ static int svc_normal_to_secure_thread(void *data)
  * physical address of memory block reserved by secure monitor software at
  * secure world.
  *
- * svc_normal_to_secure_shm_thread() calls do_exit() directly since it is a
+ * svc_normal_to_secure_shm_thread() terminates directly since it is a
  * standlone thread for which no one will call kthread_stop() or return when
  * 'kthread_should_stop()' is true.
  */
@@ -544,7 +544,7 @@ static int svc_normal_to_secure_shm_thread(void *data)
        }
 
        complete(&sh_mem->sync_complete);
-       do_exit(0);
+       return 0;
 }
 
 /**