viafb: use proper register for colour when doing fill ops
commitdbd39f4c57e6bb0d941b19380b02992666bb1169
authorFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Wed, 22 Sep 2010 02:33:52 +0000 (22 02:33 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 21 Mar 2011 19:43:50 +0000 (21 12:43 -0700)
tree6cd56cd2b167f0263ea1382411e30be2e498d4a5
parentd569283b9aef5cc8a56f81596018b9d09951a548
viafb: use proper register for colour when doing fill ops

commit efd4f6398dc92b5bf392670df862f42a19f34cf2 upstream.

The colour was written to a wrong register for fillrect operations.
This sometimes caused empty console space (for example after 'clear')
to have a different colour than desired. Fix this by writing to the
correct register.
Many thanks to Daniel Drake and Jon Nettleton for pointing out this
issue and pointing me in the right direction for the fix.

Fixes http://dev.laptop.org/ticket/9323

Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Cc: Joseph Chan <JosephChan@via.com.tw>
Cc: Daniel Drake <dsd@laptop.org>
Cc: Jon Nettleton <jon.nettleton@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/video/via/accel.c