diff options
author | rnoland <rnoland@FreeBSD.org> | 2009-03-20 17:51:26 +0000 |
---|---|---|
committer | rnoland <rnoland@FreeBSD.org> | 2009-03-20 17:51:26 +0000 |
commit | 20b6095aacd81a8c5d4b23e32ecfcfcf474f5695 (patch) | |
tree | 7e04d963311c7bbd7f229ed15a267d8fcb2feaee /sys/dev/drm/i915_suspend.c | |
parent | 1d4e9916169bc5b4e7c36b31a9e095c6ccc7c39e (diff) | |
download | FreeBSD-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.c | 2 |
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]); |