diff options
author | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2010-08-10 00:45:06 +0000 |
---|---|---|
committer | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2010-09-24 02:14:48 +0000 |
commit | 661c65cd0ce180d5e3a3e05f08fc9e64cedcf91c (patch) | |
tree | b10a5d1ab088b643cab18c53655b81394ede485a /drivers/video/via/ioctl.c | |
parent | f4ab2f7a21338ae0f59ad925c23545e790cd51e3 (diff) | |
download | blackbird-op-linux-661c65cd0ce180d5e3a3e05f08fc9e64cedcf91c.tar.gz blackbird-op-linux-661c65cd0ce180d5e3a3e05f08fc9e64cedcf91c.zip |
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>
Diffstat (limited to 'drivers/video/via/ioctl.c')
-rw-r--r-- | drivers/video/via/ioctl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/via/ioctl.c b/drivers/video/via/ioctl.c index 4d553d0b8d7a..ea1c51428823 100644 --- a/drivers/video/via/ioctl.c +++ b/drivers/video/via/ioctl.c @@ -94,6 +94,7 @@ int viafb_ioctl_hotplug(int hres, int vres, int bpp) viafb_CRT_ON = 0; viafb_LCD_ON = 0; viafb_DeviceStatus = DVI_Device; + viafb_set_iga_path(); return viafb_DeviceStatus; } status = 1; @@ -107,6 +108,7 @@ int viafb_ioctl_hotplug(int hres, int vres, int bpp) viafb_LCD_ON = 0; viafb_DeviceStatus = CRT_Device; + viafb_set_iga_path(); return viafb_DeviceStatus; } |