summaryrefslogtreecommitdiffstats
path: root/sys/dev/drm/i915_suspend.c
diff options
context:
space:
mode:
authorrnoland <rnoland@FreeBSD.org>2009-03-20 17:51:26 +0000
committerrnoland <rnoland@FreeBSD.org>2009-03-20 17:51:26 +0000
commit20b6095aacd81a8c5d4b23e32ecfcfcf474f5695 (patch)
tree7e04d963311c7bbd7f229ed15a267d8fcb2feaee /sys/dev/drm/i915_suspend.c
parent1d4e9916169bc5b4e7c36b31a9e095c6ccc7c39e (diff)
downloadFreeBSD-src-20b6095aacd81a8c5d4b23e32ecfcfcf474f5695.zip
FreeBSD-src-20b6095aacd81a8c5d4b23e32ecfcfcf474f5695.tar.gz
Fix what appears to be a typo, and restore the registers correctly.
Found with: Coverity Prevent(tm) CID: 2454
Diffstat (limited to 'sys/dev/drm/i915_suspend.c')
-rw-r--r--sys/dev/drm/i915_suspend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/drm/i915_suspend.c b/sys/dev/drm/i915_suspend.c
index 0d50777..0692f52 100644
--- a/sys/dev/drm/i915_suspend.c
+++ b/sys/dev/drm/i915_suspend.c
@@ -515,7 +515,7 @@ int i915_restore_state(struct drm_device *dev)
for (i = 0; i < 16; i++) {
I915_WRITE(SWF00 + (i << 2), dev_priv->saveSWF0[i]);
- I915_WRITE(SWF10 + (i << 2), dev_priv->saveSWF1[i+7]);
+ I915_WRITE(SWF10 + (i << 2), dev_priv->saveSWF1[i]);
}
for (i = 0; i < 3; i++)
I915_WRITE(SWF30 + (i << 2), dev_priv->saveSWF2[i]);
OpenPOWER on IntegriCloud