media: rcar-csi2: Cleanup mutex on remove and fail
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Wed, 15 Sep 2021 01:50:12 +0000 (03:50 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 5 Oct 2021 07:36:26 +0000 (09:36 +0200)
commit984166720eb42e59c0c651f161c291b32dc360fc
treee2855c703249fc909d73649af7c19bb93ba47e92
parent164646a78598071681032ace5fd3c9a1d57d8669
media: rcar-csi2: Cleanup mutex on remove and fail

The mutex was not destroyed on remove or failed probe, fix this.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
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-csi2.c