projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eac9aa0
)
[media] w9966: zero device state after a detach
author
Hans Verkuil
<hverkuil@xs4all.nl>
Fri, 31 Dec 2010 14:27:38 +0000
(11:27 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Wed, 19 Jan 2011 13:52:11 +0000
(11:52 -0200)
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>
drivers/media/video/w9966.c
patch
|
blob
|
history
diff --git
a/drivers/media/video/w9966.c
b/drivers/media/video/w9966.c
index
019ee20
..
fa35639
100644
(file)
--- 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));
}