[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 <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
Hans Verkuil authored and Mauro Carvalho Chehab committed 2011-01-19 11:52:11 -02:00
1 parent eac9aa005a
commit bd5ba3ba2e
1 file changed
+1
+1
View File
@@ -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));
}