Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318773
b: refs/heads/master
c: e8aeaee
h: refs/heads/master
i:
  318771: 530edbd
v: v3
  • Loading branch information
Daniel Vetter committed Jul 25, 2012
1 parent b4f0782 commit 7c80c29
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0da5cec1de1eb39563fb6ca2be48c0e56fed6309
refs/heads/master: e8aeaee7b012f1cdb382765d17307445385aa87c
8 changes: 7 additions & 1 deletion trunk/drivers/gpu/drm/i915/i915_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -1781,7 +1781,13 @@ void i915_driver_lastclose(struct drm_device * dev)
{
drm_i915_private_t *dev_priv = dev->dev_private;

if (!dev_priv || drm_core_check_feature(dev, DRIVER_MODESET)) {
/* On gen6+ we refuse to init without kms enabled, but then the drm core
* goes right around and calls lastclose. Check for this and don't clean
* up anything. */
if (!dev_priv)
return;

if (drm_core_check_feature(dev, DRIVER_MODESET)) {
intel_fb_restore_mode(dev);
vga_switcheroo_process_delayed_switch();
return;
Expand Down

0 comments on commit 7c80c29

Please sign in to comment.