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 | |
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>
41 files changed, 41 insertions, 2 deletions
diff --git a/drivers/media/video/gspca/benq.c b/drivers/media/video/gspca/benq.c index f03314869622..352f32190e68 100644 --- a/drivers/media/video/gspca/benq.c +++ b/drivers/media/video/gspca/benq.c | |||
@@ -282,6 +282,7 @@ static struct usb_driver sd_driver = { | |||
282 | #ifdef CONFIG_PM | 282 | #ifdef CONFIG_PM |
283 | .suspend = gspca_suspend, | 283 | .suspend = gspca_suspend, |
284 | .resume = gspca_resume, | 284 | .resume = gspca_resume, |
285 | .reset_resume = gspca_resume, | ||
285 | #endif | 286 | #endif |
286 | }; | 287 | }; |
287 | 288 | ||
diff --git a/drivers/media/video/gspca/conex.c b/drivers/media/video/gspca/conex.c index f06ba9020cdc..c9052f20435e 100644 --- a/drivers/media/video/gspca/conex.c +++ b/drivers/media/video/gspca/conex.c | |||
@@ -959,6 +959,7 @@ static struct usb_driver sd_driver = { | |||
959 | #ifdef CONFIG_PM | 959 | #ifdef CONFIG_PM |
960 | .suspend = gspca_suspend, | 960 | .suspend = gspca_suspend, |
961 | .resume = gspca_resume, | 961 | .resume = gspca_resume, |
962 | .reset_resume = gspca_resume, | ||
962 | #endif | 963 | #endif |
963 | }; | 964 | }; |
964 | 965 | ||
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 = { | |||
1898 | #ifdef CONFIG_PM | 1898 | #ifdef CONFIG_PM |
1899 | .suspend = gspca_suspend, | 1899 | .suspend = gspca_suspend, |
1900 | .resume = gspca_resume, | 1900 | .resume = gspca_resume, |
1901 | .reset_resume = gspca_resume, | ||
1901 | #endif | 1902 | #endif |
1902 | }; | 1903 | }; |
1903 | 1904 | ||
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 | ||
diff --git a/drivers/media/video/gspca/finepix.c b/drivers/media/video/gspca/finepix.c index 6e26c93b4656..c8f2201cc35a 100644 --- a/drivers/media/video/gspca/finepix.c +++ b/drivers/media/video/gspca/finepix.c | |||
@@ -299,6 +299,7 @@ static struct usb_driver sd_driver = { | |||
299 | #ifdef CONFIG_PM | 299 | #ifdef CONFIG_PM |
300 | .suspend = gspca_suspend, | 300 | .suspend = gspca_suspend, |
301 | .resume = gspca_resume, | 301 | .resume = gspca_resume, |
302 | .reset_resume = gspca_resume, | ||
302 | #endif | 303 | #endif |
303 | }; | 304 | }; |
304 | 305 | ||
diff --git a/drivers/media/video/gspca/gl860/gl860.c b/drivers/media/video/gspca/gl860/gl860.c index c549574c1c7e..ced3b71f14e5 100644 --- a/drivers/media/video/gspca/gl860/gl860.c +++ b/drivers/media/video/gspca/gl860/gl860.c | |||
@@ -521,6 +521,7 @@ static struct usb_driver sd_driver = { | |||
521 | #ifdef CONFIG_PM | 521 | #ifdef CONFIG_PM |
522 | .suspend = gspca_suspend, | 522 | .suspend = gspca_suspend, |
523 | .resume = gspca_resume, | 523 | .resume = gspca_resume, |
524 | .reset_resume = gspca_resume, | ||
524 | #endif | 525 | #endif |
525 | }; | 526 | }; |
526 | 527 | ||
diff --git a/drivers/media/video/gspca/jeilinj.c b/drivers/media/video/gspca/jeilinj.c index 51016db2fc62..26b99310d628 100644 --- a/drivers/media/video/gspca/jeilinj.c +++ b/drivers/media/video/gspca/jeilinj.c | |||
@@ -541,6 +541,7 @@ static struct usb_driver sd_driver = { | |||
541 | #ifdef CONFIG_PM | 541 | #ifdef CONFIG_PM |
542 | .suspend = gspca_suspend, | 542 | .suspend = gspca_suspend, |
543 | .resume = gspca_resume, | 543 | .resume = gspca_resume, |
544 | .reset_resume = gspca_resume, | ||
544 | #endif | 545 | #endif |
545 | }; | 546 | }; |
546 | 547 | ||
diff --git a/drivers/media/video/gspca/jl2005bcd.c b/drivers/media/video/gspca/jl2005bcd.c index 9c591c7c6f54..cf9d9fca5b84 100644 --- a/drivers/media/video/gspca/jl2005bcd.c +++ b/drivers/media/video/gspca/jl2005bcd.c | |||
@@ -505,8 +505,6 @@ static void sd_stop0(struct gspca_dev *gspca_dev) | |||
505 | /* sub-driver description */ | 505 | /* sub-driver description */ |
506 | static const struct sd_desc sd_desc = { | 506 | static const struct sd_desc sd_desc = { |
507 | .name = MODULE_NAME, | 507 | .name = MODULE_NAME, |
508 | /* .ctrls = none have been detected */ | ||
509 | /* .nctrls = ARRAY_SIZE(sd_ctrls), */ | ||
510 | .config = sd_config, | 508 | .config = sd_config, |
511 | .init = sd_init, | 509 | .init = sd_init, |
512 | .start = sd_start, | 510 | .start = sd_start, |
@@ -536,6 +534,7 @@ static struct usb_driver sd_driver = { | |||
536 | #ifdef CONFIG_PM | 534 | #ifdef CONFIG_PM |
537 | .suspend = gspca_suspend, | 535 | .suspend = gspca_suspend, |
538 | .resume = gspca_resume, | 536 | .resume = gspca_resume, |
537 | .reset_resume = gspca_resume, | ||
539 | #endif | 538 | #endif |
540 | }; | 539 | }; |
541 | 540 | ||
diff --git a/drivers/media/video/gspca/kinect.c b/drivers/media/video/gspca/kinect.c index f71ec0cfe15e..40ad6687ee5d 100644 --- a/drivers/media/video/gspca/kinect.c +++ b/drivers/media/video/gspca/kinect.c | |||
@@ -401,6 +401,7 @@ static struct usb_driver sd_driver = { | |||
401 | #ifdef CONFIG_PM | 401 | #ifdef CONFIG_PM |
402 | .suspend = gspca_suspend, | 402 | .suspend = gspca_suspend, |
403 | .resume = gspca_resume, | 403 | .resume = gspca_resume, |
404 | .reset_resume = gspca_resume, | ||
404 | #endif | 405 | #endif |
405 | }; | 406 | }; |
406 | 407 | ||
diff --git a/drivers/media/video/gspca/konica.c b/drivers/media/video/gspca/konica.c index 5dcfed208c31..46e1ae402767 100644 --- a/drivers/media/video/gspca/konica.c +++ b/drivers/media/video/gspca/konica.c | |||
@@ -472,6 +472,7 @@ static struct usb_driver sd_driver = { | |||
472 | #ifdef CONFIG_PM | 472 | #ifdef CONFIG_PM |
473 | .suspend = gspca_suspend, | 473 | .suspend = gspca_suspend, |
474 | .resume = gspca_resume, | 474 | .resume = gspca_resume, |
475 | .reset_resume = gspca_resume, | ||
475 | #endif | 476 | #endif |
476 | }; | 477 | }; |
477 | 478 | ||
diff --git a/drivers/media/video/gspca/m5602/m5602_core.c b/drivers/media/video/gspca/m5602/m5602_core.c index 0c4493675438..ed22638978ce 100644 --- a/drivers/media/video/gspca/m5602/m5602_core.c +++ b/drivers/media/video/gspca/m5602/m5602_core.c | |||
@@ -400,6 +400,7 @@ static struct usb_driver sd_driver = { | |||
400 | #ifdef CONFIG_PM | 400 | #ifdef CONFIG_PM |
401 | .suspend = gspca_suspend, | 401 | .suspend = gspca_suspend, |
402 | .resume = gspca_resume, | 402 | .resume = gspca_resume, |
403 | .reset_resume = gspca_resume, | ||
403 | #endif | 404 | #endif |
404 | .disconnect = m5602_disconnect | 405 | .disconnect = m5602_disconnect |
405 | }; | 406 | }; |
diff --git a/drivers/media/video/gspca/mr97310a.c b/drivers/media/video/gspca/mr97310a.c index 3ede41b67468..8f4714df5990 100644 --- a/drivers/media/video/gspca/mr97310a.c +++ b/drivers/media/video/gspca/mr97310a.c | |||
@@ -1084,6 +1084,7 @@ static struct usb_driver sd_driver = { | |||
1084 | #ifdef CONFIG_PM | 1084 | #ifdef CONFIG_PM |
1085 | .suspend = gspca_suspend, | 1085 | .suspend = gspca_suspend, |
1086 | .resume = gspca_resume, | 1086 | .resume = gspca_resume, |
1087 | .reset_resume = gspca_resume, | ||
1087 | #endif | 1088 | #endif |
1088 | }; | 1089 | }; |
1089 | 1090 | ||
diff --git a/drivers/media/video/gspca/nw80x.c b/drivers/media/video/gspca/nw80x.c index b8ab612243de..44c9964b1b3e 100644 --- a/drivers/media/video/gspca/nw80x.c +++ b/drivers/media/video/gspca/nw80x.c | |||
@@ -2087,6 +2087,7 @@ static struct usb_driver sd_driver = { | |||
2087 | #ifdef CONFIG_PM | 2087 | #ifdef CONFIG_PM |
2088 | .suspend = gspca_suspend, | 2088 | .suspend = gspca_suspend, |
2089 | .resume = gspca_resume, | 2089 | .resume = gspca_resume, |
2090 | .reset_resume = gspca_resume, | ||
2090 | #endif | 2091 | #endif |
2091 | }; | 2092 | }; |
2092 | 2093 | ||
diff --git a/drivers/media/video/gspca/ov519.c b/drivers/media/video/gspca/ov519.c index 3ae5e35dce40..bfc7cefa59f8 100644 --- a/drivers/media/video/gspca/ov519.c +++ b/drivers/media/video/gspca/ov519.c | |||
@@ -4981,6 +4981,7 @@ static struct usb_driver sd_driver = { | |||
4981 | #ifdef CONFIG_PM | 4981 | #ifdef CONFIG_PM |
4982 | .suspend = gspca_suspend, | 4982 | .suspend = gspca_suspend, |
4983 | .resume = gspca_resume, | 4983 | .resume = gspca_resume, |
4984 | .reset_resume = gspca_resume, | ||
4984 | #endif | 4985 | #endif |
4985 | }; | 4986 | }; |
4986 | 4987 | ||
diff --git a/drivers/media/video/gspca/ov534.c b/drivers/media/video/gspca/ov534.c index 78d11dd67817..bb09d7884b89 100644 --- a/drivers/media/video/gspca/ov534.c +++ b/drivers/media/video/gspca/ov534.c | |||
@@ -1537,6 +1537,7 @@ static struct usb_driver sd_driver = { | |||
1537 | #ifdef CONFIG_PM | 1537 | #ifdef CONFIG_PM |
1538 | .suspend = gspca_suspend, | 1538 | .suspend = gspca_suspend, |
1539 | .resume = gspca_resume, | 1539 | .resume = gspca_resume, |
1540 | .reset_resume = gspca_resume, | ||
1540 | #endif | 1541 | #endif |
1541 | }; | 1542 | }; |
1542 | 1543 | ||
diff --git a/drivers/media/video/gspca/ov534_9.c b/drivers/media/video/gspca/ov534_9.c index 06274871b783..e4c3c8fdab3e 100644 --- a/drivers/media/video/gspca/ov534_9.c +++ b/drivers/media/video/gspca/ov534_9.c | |||
@@ -1493,6 +1493,7 @@ static struct usb_driver sd_driver = { | |||
1493 | #ifdef CONFIG_PM | 1493 | #ifdef CONFIG_PM |
1494 | .suspend = gspca_suspend, | 1494 | .suspend = gspca_suspend, |
1495 | .resume = gspca_resume, | 1495 | .resume = gspca_resume, |
1496 | .reset_resume = gspca_resume, | ||
1496 | #endif | 1497 | #endif |
1497 | }; | 1498 | }; |
1498 | 1499 | ||
diff --git a/drivers/media/video/gspca/pac207.c b/drivers/media/video/gspca/pac207.c index fa661c6d6d55..d236d1791f78 100644 --- a/drivers/media/video/gspca/pac207.c +++ b/drivers/media/video/gspca/pac207.c | |||
@@ -462,6 +462,7 @@ static struct usb_driver sd_driver = { | |||
462 | #ifdef CONFIG_PM | 462 | #ifdef CONFIG_PM |
463 | .suspend = gspca_suspend, | 463 | .suspend = gspca_suspend, |
464 | .resume = gspca_resume, | 464 | .resume = gspca_resume, |
465 | .reset_resume = gspca_resume, | ||
465 | #endif | 466 | #endif |
466 | }; | 467 | }; |
467 | 468 | ||
diff --git a/drivers/media/video/gspca/pac7302.c b/drivers/media/video/gspca/pac7302.c index f5133cfb1556..4877f7ab3d59 100644 --- a/drivers/media/video/gspca/pac7302.c +++ b/drivers/media/video/gspca/pac7302.c | |||
@@ -925,6 +925,7 @@ static struct usb_driver sd_driver = { | |||
925 | #ifdef CONFIG_PM | 925 | #ifdef CONFIG_PM |
926 | .suspend = gspca_suspend, | 926 | .suspend = gspca_suspend, |
927 | .resume = gspca_resume, | 927 | .resume = gspca_resume, |
928 | .reset_resume = gspca_resume, | ||
928 | #endif | 929 | #endif |
929 | }; | 930 | }; |
930 | 931 | ||
diff --git a/drivers/media/video/gspca/pac7311.c b/drivers/media/video/gspca/pac7311.c index 115da169f32a..ba3558d3f017 100644 --- a/drivers/media/video/gspca/pac7311.c +++ b/drivers/media/video/gspca/pac7311.c | |||
@@ -694,6 +694,7 @@ static struct usb_driver sd_driver = { | |||
694 | #ifdef CONFIG_PM | 694 | #ifdef CONFIG_PM |
695 | .suspend = gspca_suspend, | 695 | .suspend = gspca_suspend, |
696 | .resume = gspca_resume, | 696 | .resume = gspca_resume, |
697 | .reset_resume = gspca_resume, | ||
697 | #endif | 698 | #endif |
698 | }; | 699 | }; |
699 | 700 | ||
diff --git a/drivers/media/video/gspca/se401.c b/drivers/media/video/gspca/se401.c index 0b019ad72fbf..a33cb78a839c 100644 --- a/drivers/media/video/gspca/se401.c +++ b/drivers/media/video/gspca/se401.c | |||
@@ -730,6 +730,7 @@ static struct usb_driver sd_driver = { | |||
730 | #ifdef CONFIG_PM | 730 | #ifdef CONFIG_PM |
731 | .suspend = gspca_suspend, | 731 | .suspend = gspca_suspend, |
732 | .resume = gspca_resume, | 732 | .resume = gspca_resume, |
733 | .reset_resume = gspca_resume, | ||
733 | #endif | 734 | #endif |
734 | .pre_reset = sd_pre_reset, | 735 | .pre_reset = sd_pre_reset, |
735 | .post_reset = sd_post_reset, | 736 | .post_reset = sd_post_reset, |
diff --git a/drivers/media/video/gspca/sn9c2028.c b/drivers/media/video/gspca/sn9c2028.c index 478533cb1152..516a17e38f67 100644 --- a/drivers/media/video/gspca/sn9c2028.c +++ b/drivers/media/video/gspca/sn9c2028.c | |||
@@ -734,6 +734,7 @@ static struct usb_driver sd_driver = { | |||
734 | #ifdef CONFIG_PM | 734 | #ifdef CONFIG_PM |
735 | .suspend = gspca_suspend, | 735 | .suspend = gspca_suspend, |
736 | .resume = gspca_resume, | 736 | .resume = gspca_resume, |
737 | .reset_resume = gspca_resume, | ||
737 | #endif | 738 | #endif |
738 | }; | 739 | }; |
739 | 740 | ||
diff --git a/drivers/media/video/gspca/sonixb.c b/drivers/media/video/gspca/sonixb.c index dfc70771c1f1..fd1f8d2d3b0b 100644 --- a/drivers/media/video/gspca/sonixb.c +++ b/drivers/media/video/gspca/sonixb.c | |||
@@ -1486,6 +1486,7 @@ static struct usb_driver sd_driver = { | |||
1486 | #ifdef CONFIG_PM | 1486 | #ifdef CONFIG_PM |
1487 | .suspend = gspca_suspend, | 1487 | .suspend = gspca_suspend, |
1488 | .resume = gspca_resume, | 1488 | .resume = gspca_resume, |
1489 | .reset_resume = gspca_resume, | ||
1489 | #endif | 1490 | #endif |
1490 | }; | 1491 | }; |
1491 | 1492 | ||
diff --git a/drivers/media/video/gspca/sonixj.c b/drivers/media/video/gspca/sonixj.c index f38faa9b37c3..150b2df40f7f 100644 --- a/drivers/media/video/gspca/sonixj.c +++ b/drivers/media/video/gspca/sonixj.c | |||
@@ -3199,6 +3199,7 @@ static struct usb_driver sd_driver = { | |||
3199 | #ifdef CONFIG_PM | 3199 | #ifdef CONFIG_PM |
3200 | .suspend = gspca_suspend, | 3200 | .suspend = gspca_suspend, |
3201 | .resume = gspca_resume, | 3201 | .resume = gspca_resume, |
3202 | .reset_resume = gspca_resume, | ||
3202 | #endif | 3203 | #endif |
3203 | }; | 3204 | }; |
3204 | 3205 | ||
diff --git a/drivers/media/video/gspca/spca1528.c b/drivers/media/video/gspca/spca1528.c index fa2075a7e486..14d635277d71 100644 --- a/drivers/media/video/gspca/spca1528.c +++ b/drivers/media/video/gspca/spca1528.c | |||
@@ -437,6 +437,7 @@ static struct usb_driver sd_driver = { | |||
437 | #ifdef CONFIG_PM | 437 | #ifdef CONFIG_PM |
438 | .suspend = gspca_suspend, | 438 | .suspend = gspca_suspend, |
439 | .resume = gspca_resume, | 439 | .resume = gspca_resume, |
440 | .reset_resume = gspca_resume, | ||
440 | #endif | 441 | #endif |
441 | }; | 442 | }; |
442 | 443 | ||
diff --git a/drivers/media/video/gspca/spca500.c b/drivers/media/video/gspca/spca500.c index 08fdedb83c6e..25cb68d0556d 100644 --- a/drivers/media/video/gspca/spca500.c +++ b/drivers/media/video/gspca/spca500.c | |||
@@ -983,6 +983,7 @@ static struct usb_driver sd_driver = { | |||
983 | #ifdef CONFIG_PM | 983 | #ifdef CONFIG_PM |
984 | .suspend = gspca_suspend, | 984 | .suspend = gspca_suspend, |
985 | .resume = gspca_resume, | 985 | .resume = gspca_resume, |
986 | .reset_resume = gspca_resume, | ||
986 | #endif | 987 | #endif |
987 | }; | 988 | }; |
988 | 989 | ||
diff --git a/drivers/media/video/gspca/spca501.c b/drivers/media/video/gspca/spca501.c index 6d4debdd5b5c..3b7f777785b4 100644 --- a/drivers/media/video/gspca/spca501.c +++ b/drivers/media/video/gspca/spca501.c | |||
@@ -2047,6 +2047,7 @@ static struct usb_driver sd_driver = { | |||
2047 | #ifdef CONFIG_PM | 2047 | #ifdef CONFIG_PM |
2048 | .suspend = gspca_suspend, | 2048 | .suspend = gspca_suspend, |
2049 | .resume = gspca_resume, | 2049 | .resume = gspca_resume, |
2050 | .reset_resume = gspca_resume, | ||
2050 | #endif | 2051 | #endif |
2051 | }; | 2052 | }; |
2052 | 2053 | ||
diff --git a/drivers/media/video/gspca/spca505.c b/drivers/media/video/gspca/spca505.c index fea17a8217f3..bc7d67c3cb04 100644 --- a/drivers/media/video/gspca/spca505.c +++ b/drivers/media/video/gspca/spca505.c | |||
@@ -800,6 +800,7 @@ static struct usb_driver sd_driver = { | |||
800 | #ifdef CONFIG_PM | 800 | #ifdef CONFIG_PM |
801 | .suspend = gspca_suspend, | 801 | .suspend = gspca_suspend, |
802 | .resume = gspca_resume, | 802 | .resume = gspca_resume, |
803 | .reset_resume = gspca_resume, | ||
803 | #endif | 804 | #endif |
804 | }; | 805 | }; |
805 | 806 | ||
diff --git a/drivers/media/video/gspca/spca506.c b/drivers/media/video/gspca/spca506.c index 7b54f63e9542..969bb5a4cd93 100644 --- a/drivers/media/video/gspca/spca506.c +++ b/drivers/media/video/gspca/spca506.c | |||
@@ -605,6 +605,7 @@ static struct usb_driver sd_driver = { | |||
605 | #ifdef CONFIG_PM | 605 | #ifdef CONFIG_PM |
606 | .suspend = gspca_suspend, | 606 | .suspend = gspca_suspend, |
607 | .resume = gspca_resume, | 607 | .resume = gspca_resume, |
608 | .reset_resume = gspca_resume, | ||
608 | #endif | 609 | #endif |
609 | }; | 610 | }; |
610 | 611 | ||
diff --git a/drivers/media/video/gspca/spca508.c b/drivers/media/video/gspca/spca508.c index da5345de9701..1286b4170b88 100644 --- a/drivers/media/video/gspca/spca508.c +++ b/drivers/media/video/gspca/spca508.c | |||
@@ -1533,6 +1533,7 @@ static struct usb_driver sd_driver = { | |||
1533 | #ifdef CONFIG_PM | 1533 | #ifdef CONFIG_PM |
1534 | .suspend = gspca_suspend, | 1534 | .suspend = gspca_suspend, |
1535 | .resume = gspca_resume, | 1535 | .resume = gspca_resume, |
1536 | .reset_resume = gspca_resume, | ||
1536 | #endif | 1537 | #endif |
1537 | }; | 1538 | }; |
1538 | 1539 | ||
diff --git a/drivers/media/video/gspca/spca561.c b/drivers/media/video/gspca/spca561.c index 00f4de7c6e84..7ea5e9112b2f 100644 --- a/drivers/media/video/gspca/spca561.c +++ b/drivers/media/video/gspca/spca561.c | |||
@@ -922,6 +922,7 @@ static struct usb_driver sd_driver = { | |||
922 | #ifdef CONFIG_PM | 922 | #ifdef CONFIG_PM |
923 | .suspend = gspca_suspend, | 923 | .suspend = gspca_suspend, |
924 | .resume = gspca_resume, | 924 | .resume = gspca_resume, |
925 | .reset_resume = gspca_resume, | ||
925 | #endif | 926 | #endif |
926 | }; | 927 | }; |
927 | 928 | ||
diff --git a/drivers/media/video/gspca/sq905.c b/drivers/media/video/gspca/sq905.c index 04f54654a026..a8ac97931ad6 100644 --- a/drivers/media/video/gspca/sq905.c +++ b/drivers/media/video/gspca/sq905.c | |||
@@ -433,6 +433,7 @@ static struct usb_driver sd_driver = { | |||
433 | #ifdef CONFIG_PM | 433 | #ifdef CONFIG_PM |
434 | .suspend = gspca_suspend, | 434 | .suspend = gspca_suspend, |
435 | .resume = gspca_resume, | 435 | .resume = gspca_resume, |
436 | .reset_resume = gspca_resume, | ||
436 | #endif | 437 | #endif |
437 | }; | 438 | }; |
438 | 439 | ||
diff --git a/drivers/media/video/gspca/sq905c.c b/drivers/media/video/gspca/sq905c.c index f34ddb0570c8..2c2f3d2f357f 100644 --- a/drivers/media/video/gspca/sq905c.c +++ b/drivers/media/video/gspca/sq905c.c | |||
@@ -340,6 +340,7 @@ static struct usb_driver sd_driver = { | |||
340 | #ifdef CONFIG_PM | 340 | #ifdef CONFIG_PM |
341 | .suspend = gspca_suspend, | 341 | .suspend = gspca_suspend, |
342 | .resume = gspca_resume, | 342 | .resume = gspca_resume, |
343 | .reset_resume = gspca_resume, | ||
343 | #endif | 344 | #endif |
344 | }; | 345 | }; |
345 | 346 | ||
diff --git a/drivers/media/video/gspca/sq930x.c b/drivers/media/video/gspca/sq930x.c index 2d068867d0a4..3e1e486af883 100644 --- a/drivers/media/video/gspca/sq930x.c +++ b/drivers/media/video/gspca/sq930x.c | |||
@@ -1165,6 +1165,7 @@ static struct usb_driver sd_driver = { | |||
1165 | #ifdef CONFIG_PM | 1165 | #ifdef CONFIG_PM |
1166 | .suspend = gspca_suspend, | 1166 | .suspend = gspca_suspend, |
1167 | .resume = gspca_resume, | 1167 | .resume = gspca_resume, |
1168 | .reset_resume = gspca_resume, | ||
1168 | #endif | 1169 | #endif |
1169 | }; | 1170 | }; |
1170 | 1171 | ||
diff --git a/drivers/media/video/gspca/stk014.c b/drivers/media/video/gspca/stk014.c index e83e683958a8..8c0982607f25 100644 --- a/drivers/media/video/gspca/stk014.c +++ b/drivers/media/video/gspca/stk014.c | |||
@@ -439,6 +439,7 @@ static struct usb_driver sd_driver = { | |||
439 | #ifdef CONFIG_PM | 439 | #ifdef CONFIG_PM |
440 | .suspend = gspca_suspend, | 440 | .suspend = gspca_suspend, |
441 | .resume = gspca_resume, | 441 | .resume = gspca_resume, |
442 | .reset_resume = gspca_resume, | ||
442 | #endif | 443 | #endif |
443 | }; | 444 | }; |
444 | 445 | ||
diff --git a/drivers/media/video/gspca/stv0680.c b/drivers/media/video/gspca/stv0680.c index 461ed645f309..4e4f86cd5bb0 100644 --- a/drivers/media/video/gspca/stv0680.c +++ b/drivers/media/video/gspca/stv0680.c | |||
@@ -352,6 +352,7 @@ static struct usb_driver sd_driver = { | |||
352 | #ifdef CONFIG_PM | 352 | #ifdef CONFIG_PM |
353 | .suspend = gspca_suspend, | 353 | .suspend = gspca_suspend, |
354 | .resume = gspca_resume, | 354 | .resume = gspca_resume, |
355 | .reset_resume = gspca_resume, | ||
355 | #endif | 356 | #endif |
356 | }; | 357 | }; |
357 | 358 | ||
diff --git a/drivers/media/video/gspca/sunplus.c b/drivers/media/video/gspca/sunplus.c index c73748b2d21f..9ccfcb1c6479 100644 --- a/drivers/media/video/gspca/sunplus.c +++ b/drivers/media/video/gspca/sunplus.c | |||
@@ -1078,6 +1078,7 @@ static struct usb_driver sd_driver = { | |||
1078 | #ifdef CONFIG_PM | 1078 | #ifdef CONFIG_PM |
1079 | .suspend = gspca_suspend, | 1079 | .suspend = gspca_suspend, |
1080 | .resume = gspca_resume, | 1080 | .resume = gspca_resume, |
1081 | .reset_resume = gspca_resume, | ||
1081 | #endif | 1082 | #endif |
1082 | }; | 1083 | }; |
1083 | 1084 | ||
diff --git a/drivers/media/video/gspca/t613.c b/drivers/media/video/gspca/t613.c index 5f5d569ab646..01414bafaacf 100644 --- a/drivers/media/video/gspca/t613.c +++ b/drivers/media/video/gspca/t613.c | |||
@@ -1043,6 +1043,7 @@ static struct usb_driver sd_driver = { | |||
1043 | #ifdef CONFIG_PM | 1043 | #ifdef CONFIG_PM |
1044 | .suspend = gspca_suspend, | 1044 | .suspend = gspca_suspend, |
1045 | .resume = gspca_resume, | 1045 | .resume = gspca_resume, |
1046 | .reset_resume = gspca_resume, | ||
1046 | #endif | 1047 | #endif |
1047 | }; | 1048 | }; |
1048 | 1049 | ||
diff --git a/drivers/media/video/gspca/tv8532.c b/drivers/media/video/gspca/tv8532.c index ef39981bfb69..8591324a53e1 100644 --- a/drivers/media/video/gspca/tv8532.c +++ b/drivers/media/video/gspca/tv8532.c | |||
@@ -371,6 +371,7 @@ static struct usb_driver sd_driver = { | |||
371 | #ifdef CONFIG_PM | 371 | #ifdef CONFIG_PM |
372 | .suspend = gspca_suspend, | 372 | .suspend = gspca_suspend, |
373 | .resume = gspca_resume, | 373 | .resume = gspca_resume, |
374 | .reset_resume = gspca_resume, | ||
374 | #endif | 375 | #endif |
375 | }; | 376 | }; |
376 | 377 | ||
diff --git a/drivers/media/video/gspca/vc032x.c b/drivers/media/video/gspca/vc032x.c index 54a6cf92b745..f21fd1677c38 100644 --- a/drivers/media/video/gspca/vc032x.c +++ b/drivers/media/video/gspca/vc032x.c | |||
@@ -3846,6 +3846,7 @@ static struct usb_driver sd_driver = { | |||
3846 | #ifdef CONFIG_PM | 3846 | #ifdef CONFIG_PM |
3847 | .suspend = gspca_suspend, | 3847 | .suspend = gspca_suspend, |
3848 | .resume = gspca_resume, | 3848 | .resume = gspca_resume, |
3849 | .reset_resume = gspca_resume, | ||
3849 | #endif | 3850 | #endif |
3850 | }; | 3851 | }; |
3851 | 3852 | ||
diff --git a/drivers/media/video/gspca/vicam.c b/drivers/media/video/gspca/vicam.c index 35afbd002233..b1a64b912666 100644 --- a/drivers/media/video/gspca/vicam.c +++ b/drivers/media/video/gspca/vicam.c | |||
@@ -358,6 +358,7 @@ static struct usb_driver sd_driver = { | |||
358 | #ifdef CONFIG_PM | 358 | #ifdef CONFIG_PM |
359 | .suspend = gspca_suspend, | 359 | .suspend = gspca_suspend, |
360 | .resume = gspca_resume, | 360 | .resume = gspca_resume, |
361 | .reset_resume = gspca_resume, | ||
361 | #endif | 362 | #endif |
362 | }; | 363 | }; |
363 | 364 | ||
diff --git a/drivers/media/video/gspca/xirlink_cit.c b/drivers/media/video/gspca/xirlink_cit.c index e074718658d8..42d51dadb46b 100644 --- a/drivers/media/video/gspca/xirlink_cit.c +++ b/drivers/media/video/gspca/xirlink_cit.c | |||
@@ -3135,6 +3135,7 @@ static struct usb_driver sd_driver = { | |||
3135 | #ifdef CONFIG_PM | 3135 | #ifdef CONFIG_PM |
3136 | .suspend = gspca_suspend, | 3136 | .suspend = gspca_suspend, |
3137 | .resume = gspca_resume, | 3137 | .resume = gspca_resume, |
3138 | .reset_resume = gspca_resume, | ||
3138 | #endif | 3139 | #endif |
3139 | }; | 3140 | }; |
3140 | 3141 | ||