OSDN Git Service

media: rcar-vin: remove unneeded locking in async callbacks
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Fri, 4 Jan 2019 16:12:18 +0000 (11:12 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 16 Jan 2019 16:32:52 +0000 (11:32 -0500)
commit6458afc8c49148f0a5015d8853039a0b3fb91d98
tree32c589b243d5cbd19b6409bd23448c680a68aba3
parenta86f2b590aa0259b961ffc39852e7c88f6c7e468
media: rcar-vin: remove unneeded locking in async callbacks

The locking implemented in the async notifier callbacks are unnecessary
as the global list_lock in v4l2-async.c is held whenever one of the
callbacks are called.

The locking in itself is not harmful however it produces a LOCKDEP
warning between the global v4l2-async list_lock and the rcar-vin local
locking schema. Remove the rcar-vin locking for the async callbacks to
reduce complexity and silent the false LOCKDEP warning.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/rcar-vin/rcar-core.c