ChangeSet 1.1005.1.12, 2003/06/27 16:01:07-07:00, oliver@neukum.org [PATCH] USB: fix to previous vicam patch OK, I'll think next time. - fix my own stupid oversight regarding disconnect() drivers/usb/vicam.c | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff -Nru a/drivers/usb/vicam.c b/drivers/usb/vicam.c --- a/drivers/usb/vicam.c Fri Jun 27 16:27:02 2003 +++ b/drivers/usb/vicam.c Fri Jun 27 16:27:02 2003 @@ -765,11 +765,13 @@ DBG("close\n"); struct vicam_camera *cam = (struct vicam_camera *) dev->priv; - set_camera_power(cam, 0); - if (cam->is_removed) + + if (cam->is_removed) { vicam_purge(cam); - else + } else { + set_camera_power(cam, 0); cam->is_opened = 0; + } } inline int pin(int x)