File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1203,17 +1203,18 @@ static int intel_backlight_device_get_brightness(struct backlight_device *bd)
1203
1203
struct intel_connector * connector = bl_get_data (bd );
1204
1204
struct drm_device * dev = connector -> base .dev ;
1205
1205
struct drm_i915_private * dev_priv = to_i915 (dev );
1206
+ intel_wakeref_t wakeref ;
1206
1207
u32 hw_level ;
1207
1208
int ret ;
1208
1209
1209
- intel_runtime_pm_get (dev_priv );
1210
+ wakeref = intel_runtime_pm_get (dev_priv );
1210
1211
drm_modeset_lock (& dev -> mode_config .connection_mutex , NULL );
1211
1212
1212
1213
hw_level = intel_panel_get_backlight (connector );
1213
1214
ret = scale_hw_to_user (connector , hw_level , bd -> props .max_brightness );
1214
1215
1215
1216
drm_modeset_unlock (& dev -> mode_config .connection_mutex );
1216
- intel_runtime_pm_put_unchecked (dev_priv );
1217
+ intel_runtime_pm_put (dev_priv , wakeref );
1217
1218
1218
1219
return ret ;
1219
1220
}
You can’t perform that action at this time.
0 commit comments