Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 307469
b: refs/heads/master
c: 7beff62
h: refs/heads/master
i:
  307467: 73b2dfa
v: v3
  • Loading branch information
Alan Cox authored and Dave Airlie committed May 22, 2012
1 parent c209da0 commit 2bac39b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: bc794829141f28e14fe7d0e07e35870bd9aee78c
refs/heads/master: 7beff62ee39d3ccf088bb77f61a63037f714d235
6 changes: 4 additions & 2 deletions trunk/drivers/gpu/drm/gma500/psb_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,8 @@ static int psb_save_display_registers(struct drm_device *dev)
}

list_for_each_entry(connector, &dev->mode_config.connector_list, head)
connector->funcs->save(connector);
if (connector->funcs->save)
connector->funcs->save(connector);

mutex_unlock(&dev->mode_config.mutex);
return 0;
Expand Down Expand Up @@ -235,7 +236,8 @@ static int psb_restore_display_registers(struct drm_device *dev)
crtc->funcs->restore(crtc);

list_for_each_entry(connector, &dev->mode_config.connector_list, head)
connector->funcs->restore(connector);
if (connector->funcs->restore)
connector->funcs->restore(connector);

mutex_unlock(&dev->mode_config.mutex);
return 0;
Expand Down

0 comments on commit 2bac39b

Please sign in to comment.