summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/media/video/au0828/au0828-video.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/video/au0828/au0828-video.c b/drivers/media/video/au0828/au0828-video.c
index 4c77aebfe6ee..6abdd8bf4494 100644
--- a/drivers/media/video/au0828/au0828-video.c
+++ b/drivers/media/video/au0828/au0828-video.c
@@ -700,9 +700,10 @@ void au0828_analog_unregister(struct au0828_dev *dev)
dprintk(1, "au0828_release_resources called\n");
mutex_lock(&au0828_sysfs_lock);
- list_del(&dev->au0828list);
- if (dev->vdev)
+ if (dev->vdev) {
+ list_del(&dev->au0828list);
video_unregister_device(dev->vdev);
+ }
if (dev->vbi_dev)
video_unregister_device(dev->vbi_dev);