summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/cpia1.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2012-06-30 11:44:47 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-07-30 23:39:22 +0200
commit8bb58964bc139d5ff5285f84aa302977d221754d (patch)
tree29ae18fe48ec1ae609d2ac039b3fee76231f3bc2 /drivers/media/video/gspca/cpia1.c
parent[media] gspca_benq: Remove empty ctrls array (diff)
downloadlinux-8bb58964bc139d5ff5285f84aa302977d221754d.tar.xz
linux-8bb58964bc139d5ff5285f84aa302977d221754d.zip
[media] gspca: Add reset_resume callback to all sub-drivers
1) The gspca-core's suspend/resume code is such that resume being called after a reset is safe / ok. 2) All devices tested sofar seem to need the reset_resume callback to work properly over a suspend 3) The USB-core won't call the reset_resume callback for devices which don't need it Thus it seems the simplest and the best to just add the callback to all sub-drivers, rather then adding the callbacks one-by-one as each driver gets tested with suspend/resume. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/cpia1.c')
-rw-r--r--drivers/media/video/gspca/cpia1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/gspca/cpia1.c b/drivers/media/video/gspca/cpia1.c
index 57cad7b94311..2499a881d9a3 100644
--- a/drivers/media/video/gspca/cpia1.c
+++ b/drivers/media/video/gspca/cpia1.c
@@ -1898,6 +1898,7 @@ static struct usb_driver sd_driver = {
#ifdef CONFIG_PM
.suspend = gspca_suspend,
.resume = gspca_resume,
+ .reset_resume = gspca_resume,
#endif
};