aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/gspca/gspca.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c
index e7e73ec7134c..1767991c1f4b 100644
--- a/drivers/media/video/gspca/gspca.c
+++ b/drivers/media/video/gspca/gspca.c
@@ -1838,9 +1838,12 @@ int gspca_resume(struct usb_interface *intf)
1838 struct gspca_dev *gspca_dev = usb_get_intfdata(intf); 1838 struct gspca_dev *gspca_dev = usb_get_intfdata(intf);
1839 1839
1840 gspca_dev->frozen = 0; 1840 gspca_dev->frozen = 0;
1841 if (!gspca_dev->streaming) 1841 if (gspca_dev->users != 0) {
1842 return 0; 1842 gspca_dev->sd_desc->open(gspca_dev);
1843 return gspca_init_transfer(gspca_dev); 1843 if (gspca_dev->streaming)
1844 return gspca_init_transfer(gspca_dev);
1845 }
1846 return 0;
1844} 1847}
1845EXPORT_SYMBOL(gspca_resume); 1848EXPORT_SYMBOL(gspca_resume);
1846#endif 1849#endif