viafb: reduce viafb_set_iga_path usage
authorFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Tue, 10 Aug 2010 00:45:06 +0000 (00:45 +0000)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Fri, 24 Sep 2010 02:14:48 +0000 (02:14 +0000)
commit661c65cd0ce180d5e3a3e05f08fc9e64cedcf91c
treeb10a5d1ab088b643cab18c53655b81394ede485a
parentf4ab2f7a21338ae0f59ad925c23545e790cd51e3
viafb: reduce viafb_set_iga_path usage

The result of viafb_set_iga_path can change after init only in the
hotplug ioctl. So we can move it there rather than doing it always
when a new mode is set. The setup during init is done via a call
from the init chip funtion.
This change enables a stable mapping between the old device scheme
and a new more powerfull one.

Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Cc: Joseph Chan <JosephChan@via.com.tw>
drivers/video/via/hw.c
drivers/video/via/ioctl.c