viafb: Retain GEMODE reserved bits
authorJonathan Corbet <corbet@lwn.net>
Sat, 27 Mar 2010 18:14:52 +0000 (12:14 -0600)
committerJonathan Corbet <corbet@lwn.net>
Tue, 20 Apr 2010 20:23:19 +0000 (14:23 -0600)
commit9ca43cf41d014e12f4b25d4538f362d7513448dd
tree9c564608e9fac98c2babbd9db290364b107a0e67
parent1b1f8cd299d3c5a90c2ec1c24c271a0b536e5891
viafb: Retain GEMODE reserved bits

Commit c3e25673843153ea75fda79a47cf12f10a25ca37 (viafb: 2D engine rewrite)
changed the setting of the GEMODE register so that the reserved bits are no
longer preserved.  Fix that; at the same time, move this code to its own
function and restore the use of symbolic constants.

Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Cc: ScottFang@viatech.com.cn
Cc: JosephChan@via.com.tw
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
drivers/video/via/accel.c