media: rcar-vin: Unconditionally unregister notifier on remove
[linux-2.6-microblaze.git] / drivers / media / platform / rcar-vin / rcar-core.c
index 7440c89..1cbbcc9 100644 (file)
@@ -1370,12 +1370,8 @@ static int rcar_vin_remove(struct platform_device *pdev)
        v4l2_async_notifier_cleanup(&vin->notifier);
 
        if (vin->info->use_mc) {
-               mutex_lock(&vin->group->lock);
-               if (&vin->v4l2_dev == vin->group->notifier.v4l2_dev) {
-                       v4l2_async_notifier_unregister(&vin->group->notifier);
-                       v4l2_async_notifier_cleanup(&vin->group->notifier);
-               }
-               mutex_unlock(&vin->group->lock);
+               v4l2_async_notifier_unregister(&vin->group->notifier);
+               v4l2_async_notifier_cleanup(&vin->group->notifier);
                rvin_group_put(vin);
        }