viafb: seperate hardware initialization
authorFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Sun, 7 Aug 2011 11:13:39 +0000 (11:13 +0000)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Sun, 7 Aug 2011 11:22:32 +0000 (11:22 +0000)
commit4fbf4bfe6fb5460bfd4a18ca7c7f21ffec941b07
treea733edd7b5580597afd91dc0e4287086ff26ad02
parentebb29fb47e198787b8b47a74cb10334cd9647a9d
viafb: seperate hardware initialization

This patch splits the hardware initialization out of the modesetting
function which will make it easier to make it conditional and not
require starting from scratch for every mode change, which is
especially annoying in dual framebuffer mode.
This required some minor reordering but it should not influence its
functionality.

Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
drivers/video/via/hw.c