]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/libdrm.git/commitdiff
Fix typo in i915_suspend
authorRobert Noland <rnoland@wombat.2hip.net>
Mon, 9 Jun 2008 03:46:14 +0000 (23:46 -0400)
committerRobert Noland <rnoland@wombat.2hip.net>
Mon, 9 Jun 2008 03:46:14 +0000 (23:46 -0400)
Reported by vehemens

shared-core/i915_suspend.c

index 27c82b48b982635dbe111f09ca9ba5e73dd5f1a7..d93bf6b320fc8ce6b6595868b86bcd822ee81a52 100644 (file)
@@ -149,7 +149,7 @@ static void i915_save_vga(struct drm_device *dev)
        i915_write_indexed(dev, cr_index, cr_data, 0x11,
                           i915_read_indexed(dev, cr_index, cr_data, 0x11) &
                           (~0x80));
-       for (i = 0; i < 0x24; i++)
+       for (i = 0; i <= 0x24; i++)
                dev_priv->saveCR[i] =
                        i915_read_indexed(dev, cr_index, cr_data, i);
        /* Make sure we don't turn off CR group 0 writes */