mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
drivers: rkflash: Add mutex for deinit ops.
Change-Id: I477c161cb22f58263963a4d8e0d08eaeda676f69 Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
This commit is contained in:
@@ -776,6 +776,8 @@ void rkflash_dev_shutdown(void)
|
||||
wake_up(&mytr.thread_wq);
|
||||
wait_for_completion(&mytr.thread_exit);
|
||||
}
|
||||
mutex_lock(&g_flash_ops_mutex);
|
||||
g_boot_ops->deinit();
|
||||
mutex_unlock(&g_flash_ops_mutex);
|
||||
pr_info("rkflash_shutdown:OK\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user