]> git.baikalelectronics.ru Git - kernel.git/commit
media: staging: rkisp1: use the right variants of spin_lock
authorDafna Hirschfeld <dafna.hirschfeld@collabora.com>
Tue, 22 Sep 2020 11:34:01 +0000 (13:34 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 27 Sep 2020 09:35:53 +0000 (11:35 +0200)
commitb82d5512aa6630353d3b84e5bc249485c99f0f51
treed817de990a888bb5e5b19c6288d4ea59dfa437f4
parent0a3fab4a3f0acd5b5132ab6ec1e20685cb092a52
media: staging: rkisp1: use the right variants of spin_lock

When locking, use either 'spin_lock' or 'spin_lock_irq'
according to the context. There is nowhere need to
use 'spin_lock_irqsave'.
Outside of irq context, always use 'spin_lock_irq'
to be on the safe side.

Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/rkisp1/rkisp1-capture.c
drivers/staging/media/rkisp1/rkisp1-params.c