[media] adv7180: Fix remove order
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 7 Mar 2014 16:14:27 +0000 (13:14 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 11 Mar 2014 13:21:55 +0000 (10:21 -0300)
commit297a0ae32bf84c8ae135971eb21f18ee5f4ca3ea
treea362ae7b165981172ccdc428a9f37a18ff9e34c6
parente25436581f4117a0df9bf5539f6a7702a78df317
[media] adv7180: Fix remove order

The mutex is used in the subdev callbacks, so unregister the subdev before the
mutex is destroyed.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/i2c/adv7180.c