diff options
author | Binoy Jayan <binoy.jayan@linaro.org> | 2017-06-13 11:58:48 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-06-24 22:36:40 +0300 |
commit | 1439cdb0315cc3f1e86cf70de22c4a90c5ac48b1 (patch) | |
tree | 985b59cf357544354289de26f78dc9c611927ad8 /drivers/media/pci/ngene/ngene.h | |
parent | f7d84fa704ac8bf6145864d0ea204ca85816c15d (diff) | |
download | linux-1439cdb0315cc3f1e86cf70de22c4a90c5ac48b1.tar.xz |
media: ngene: Replace semaphore cmd_mutex with mutex
The semaphore 'cmd_mutex' is used as a simple mutex, so
it should be written as one. Also, replace down with
mutex_destroy to ensure sane state when ngene_stop is
called.
Signed-off-by: Binoy Jayan <binoy.jayan@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/pci/ngene/ngene.h')
-rw-r--r-- | drivers/media/pci/ngene/ngene.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/ngene/ngene.h b/drivers/media/pci/ngene/ngene.h index 10d8f74c4f0a..e600b70415da 100644 --- a/drivers/media/pci/ngene/ngene.h +++ b/drivers/media/pci/ngene/ngene.h @@ -762,7 +762,7 @@ struct ngene { wait_queue_head_t cmd_wq; int cmd_done; - struct semaphore cmd_mutex; + struct mutex cmd_mutex; struct semaphore stream_mutex; struct semaphore pll_mutex; struct semaphore i2c_switch_mutex; |