File tree Expand file tree Collapse file tree 6 files changed +12
-24
lines changed
drivers/video/fbdev/omap2/omapfb/dss Expand file tree Collapse file tree 6 files changed +12
-24
lines changed Original file line number Diff line number Diff line change @@ -519,11 +519,9 @@ int dispc_runtime_get(void)
519
519
520
520
DSSDBG ("dispc_runtime_get\n" );
521
521
522
- r = pm_runtime_get_sync (& dispc .pdev -> dev );
523
- if (WARN_ON (r < 0 )) {
524
- pm_runtime_put_sync (& dispc .pdev -> dev );
522
+ r = pm_runtime_resume_and_get (& dispc .pdev -> dev );
523
+ if (WARN_ON (r < 0 ))
525
524
return r ;
526
- }
527
525
return 0 ;
528
526
}
529
527
EXPORT_SYMBOL (dispc_runtime_get );
Original file line number Diff line number Diff line change @@ -1136,11 +1136,9 @@ static int dsi_runtime_get(struct platform_device *dsidev)
1136
1136
1137
1137
DSSDBG ("dsi_runtime_get\n" );
1138
1138
1139
- r = pm_runtime_get_sync (& dsi -> pdev -> dev );
1140
- if (WARN_ON (r < 0 )) {
1141
- pm_runtime_put_sync (& dsi -> pdev -> dev );
1139
+ r = pm_runtime_resume_and_get (& dsi -> pdev -> dev );
1140
+ if (WARN_ON (r < 0 ))
1142
1141
return r ;
1143
- }
1144
1142
return 0 ;
1145
1143
}
1146
1144
Original file line number Diff line number Diff line change @@ -767,11 +767,9 @@ int dss_runtime_get(void)
767
767
768
768
DSSDBG ("dss_runtime_get\n" );
769
769
770
- r = pm_runtime_get_sync (& dss .pdev -> dev );
771
- if (WARN_ON (r < 0 )) {
772
- pm_runtime_put_sync (& dss .pdev -> dev );
770
+ r = pm_runtime_resume_and_get (& dss .pdev -> dev );
771
+ if (WARN_ON (r < 0 ))
773
772
return r ;
774
- }
775
773
return 0 ;
776
774
}
777
775
Original file line number Diff line number Diff line change @@ -38,11 +38,9 @@ static int hdmi_runtime_get(void)
38
38
39
39
DSSDBG ("hdmi_runtime_get\n" );
40
40
41
- r = pm_runtime_get_sync (& hdmi .pdev -> dev );
42
- if (WARN_ON (r < 0 )) {
43
- pm_runtime_put_sync (& hdmi .pdev -> dev );
41
+ r = pm_runtime_resume_and_get (& hdmi .pdev -> dev );
42
+ if (WARN_ON (r < 0 ))
44
43
return r ;
45
- }
46
44
47
45
return 0 ;
48
46
}
Original file line number Diff line number Diff line change @@ -42,11 +42,9 @@ static int hdmi_runtime_get(void)
42
42
43
43
DSSDBG ("hdmi_runtime_get\n" );
44
44
45
- r = pm_runtime_get_sync (& hdmi .pdev -> dev );
46
- if (WARN_ON (r < 0 )) {
47
- pm_runtime_put_sync (& hdmi .pdev -> dev );
45
+ r = pm_runtime_resume_and_get (& hdmi .pdev -> dev );
46
+ if (WARN_ON (r < 0 ))
48
47
return r ;
49
- }
50
48
51
49
return 0 ;
52
50
}
Original file line number Diff line number Diff line change @@ -347,11 +347,9 @@ static int venc_runtime_get(void)
347
347
348
348
DSSDBG ("venc_runtime_get\n" );
349
349
350
- r = pm_runtime_get_sync (& venc .pdev -> dev );
351
- if (WARN_ON (r < 0 )) {
352
- pm_runtime_put_sync (& venc .pdev -> dev );
350
+ r = pm_runtime_resume_and_get (& venc .pdev -> dev );
351
+ if (WARN_ON (r < 0 ))
353
352
return r ;
354
- }
355
353
return 0 ;
356
354
}
357
355
You can’t perform that action at this time.
0 commit comments