diff options
author | Hans de Goede <hdegoede@redhat.com> | 2012-06-30 05:44:47 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-07-30 17:39:22 -0400 |
commit | 8bb58964bc139d5ff5285f84aa302977d221754d (patch) | |
tree | 29ae18fe48ec1ae609d2ac039b3fee76231f3bc2 /drivers/media/video/gspca/etoms.c | |
parent | 12891794046c56957008e59a21da1b4572068430 (diff) |
[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/etoms.c')
-rw-r--r-- | drivers/media/video/gspca/etoms.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/gspca/etoms.c b/drivers/media/video/gspca/etoms.c index 8da77a8dc365..38f68e11c3a2 100644 --- a/drivers/media/video/gspca/etoms.c +++ b/drivers/media/video/gspca/etoms.c | |||
@@ -792,6 +792,7 @@ static struct usb_driver sd_driver = { | |||
792 | #ifdef CONFIG_PM | 792 | #ifdef CONFIG_PM |
793 | .suspend = gspca_suspend, | 793 | .suspend = gspca_suspend, |
794 | .resume = gspca_resume, | 794 | .resume = gspca_resume, |
795 | .reset_resume = gspca_resume, | ||
795 | #endif | 796 | #endif |
796 | }; | 797 | }; |
797 | 798 | ||