aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2010-12-31 14:27:38 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-01-17 15:12:43 (GMT)
commit1456800221880fe03c76187c8649b702ebf9b0fc (patch)
tree4da938933d798b70f7ab09328618a264ae1f0d25
parent341009613c123704722f7bca924845342c330774 (diff)
[media] w9966: zero device state after a detach
After a detach zero the whole device state to ensure a clean slate on the next attach. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/w9966.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/w9966.c b/drivers/media/video/w9966.c
index 019ee20..fa35639 100644
--- a/drivers/media/video/w9966.c
+++ b/drivers/media/video/w9966.c
@@ -937,6 +937,7 @@ static void w9966_term(struct w9966 *cam)
parport_unregister_device(cam->pdev);
w9966_set_state(cam, W9966_STATE_PDEV, 0);
}
+ memset(cam, 0, sizeof(*cam));
}

Privacy Policy