- Timestamp:
- Sep 13, 2016 8:19:12 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/drm/vbox_drv.c
r63791 r63807 241 241 * do not advertise dynamic modes on the first query and send a 242 242 * tentative hotplug notification after that to see if they query again. */ 243 vbox->initial_mode_queried = false;244 return 0;245 }246 247 #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 8, 0)248 static void vbox_master_drop(struct drm_device *dev,249 struct drm_file *file_priv,250 bool from_release)251 #else252 static void vbox_master_drop(struct drm_device *dev,253 struct drm_file *file_priv)254 #endif255 {256 struct vbox_private *vbox = dev->dev_private;257 243 vbox->initial_mode_queried = false; 258 244 mutex_lock(&vbox->hw_mutex); … … 266 252 vbox_disable_accel(vbox); 267 253 mutex_unlock(&vbox->hw_mutex); 254 return 0; 255 } 256 257 #if LINUX_VERSION_CODE < KERNEL_VERSION(4, 8, 0) 258 static void vbox_master_drop(struct drm_device *dev, 259 struct drm_file *file_priv, 260 bool from_release) 261 #else 262 static void vbox_master_drop(struct drm_device *dev, 263 struct drm_file *file_priv) 264 #endif 265 { 266 struct vbox_private *vbox = dev->dev_private; 267 /* See vbox_master_set() */ 268 vbox->initial_mode_queried = false; 269 mutex_lock(&vbox->hw_mutex); 270 vbox_disable_accel(vbox); 271 mutex_unlock(&vbox->hw_mutex); 268 272 } 269 273
Note:
See TracChangeset
for help on using the changeset viewer.