media: rcar-vin: Do not hold the group lock when unregistering notifier
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Sun, 28 Nov 2021 13:24:59 +0000 (14:24 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 7 Dec 2021 10:29:55 +0000 (11:29 +0100)
commit468613a67bcbc9ef63fe13ec7214c34e5c7b96ba
tree27696adcfe734b2dbc4012d62c92d75a29e6b898
parente37e82188bc9114a9e285d003569dcad5f6d5612
media: rcar-vin: Do not hold the group lock when unregistering notifier

There is no need to hold the group lock when unregistering the notifier,
but doing so triggers a warning about a possible cyclic lock dependency.

The lock warning cover the case where a subdevice is about to be bound
to the notifier at the same time as it's unregistered. The locking for
this scenario is handled in the v4l2-async framework so it's safe to
remove the lock in the driver. This match the locking logic in the
driver for when the notifier in question is registered.

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