File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -107,11 +107,7 @@ static int bochs_pm_suspend(struct device *dev)
107
107
108
108
drm_kms_helper_poll_disable (drm_dev );
109
109
110
- if (bochs -> fb .initialized ) {
111
- console_lock ();
112
- drm_fb_helper_set_suspend (& bochs -> fb .helper , 1 );
113
- console_unlock ();
114
- }
110
+ drm_fb_helper_set_suspend_unlocked (& bochs -> fb .helper , 1 );
115
111
116
112
return 0 ;
117
113
}
@@ -124,11 +120,7 @@ static int bochs_pm_resume(struct device *dev)
124
120
125
121
drm_helper_resume_force_mode (drm_dev );
126
122
127
- if (bochs -> fb .initialized ) {
128
- console_lock ();
129
- drm_fb_helper_set_suspend (& bochs -> fb .helper , 0 );
130
- console_unlock ();
131
- }
123
+ drm_fb_helper_set_suspend_unlocked (& bochs -> fb .helper , 0 );
132
124
133
125
drm_kms_helper_poll_enable (drm_dev );
134
126
return 0 ;
You can’t perform that action at this time.
0 commit comments