diff options
author | Florian Tobias Schandinat <FlorianSchandinat@gmx.de> | 2010-03-10 18:21:31 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-03-12 18:52:33 -0500 |
commit | 7cf607923dee1898b9fc1e62568b79e7f785b995 (patch) | |
tree | 86076119b2f2c92717d12851cd8a9454e01c620e | |
parent | d8566b29e86ef3906dd6c0ea4a02c2a925748da5 (diff) |
viafb: reorder initialization for dual framebuffer mode
This patch reorders the initialization for dual framebuffer mode to not
ignore the settings for the first mode. Previously they were overwritten
with the settings for the second one before they were applied.
This should have no effect on non dual framebuffer mode and do what the
user intended (initalization to desired modes) in dual framebuffer mode.
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Cc: Scott Fang <ScottFang@viatech.com.cn>
Cc: Joseph Chan <JosephChan@via.com.tw>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | drivers/video/via/viafbdev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/via/viafbdev.c b/drivers/video/via/viafbdev.c index 5f5b5e9ef500..4d955ca0a1d2 100644 --- a/drivers/video/via/viafbdev.c +++ b/drivers/video/via/viafbdev.c | |||
@@ -1960,6 +1960,9 @@ static int __devinit via_pci_probe(struct pci_dev *pdev, | |||
1960 | default_var.lower_margin = 4; | 1960 | default_var.lower_margin = 4; |
1961 | default_var.hsync_len = default_var.left_margin; | 1961 | default_var.hsync_len = default_var.left_margin; |
1962 | default_var.vsync_len = 4; | 1962 | default_var.vsync_len = 4; |
1963 | viafb_setup_fixinfo(&viafbinfo->fix, viaparinfo); | ||
1964 | viafb_check_var(&default_var, viafbinfo); | ||
1965 | viafbinfo->var = default_var; | ||
1963 | 1966 | ||
1964 | if (viafb_dual_fb) { | 1967 | if (viafb_dual_fb) { |
1965 | viafbinfo1 = framebuffer_alloc(viafb_par_length, &pdev->dev); | 1968 | viafbinfo1 = framebuffer_alloc(viafb_par_length, &pdev->dev); |
@@ -2015,9 +2018,6 @@ static int __devinit via_pci_probe(struct pci_dev *pdev, | |||
2015 | &viafbinfo1->fix); | 2018 | &viafbinfo1->fix); |
2016 | } | 2019 | } |
2017 | 2020 | ||
2018 | viafb_setup_fixinfo(&viafbinfo->fix, viaparinfo); | ||
2019 | viafb_check_var(&default_var, viafbinfo); | ||
2020 | viafbinfo->var = default_var; | ||
2021 | viafb_update_fix(viafbinfo); | 2021 | viafb_update_fix(viafbinfo); |
2022 | viaparinfo->depth = fb_get_color_depth(&viafbinfo->var, | 2022 | viaparinfo->depth = fb_get_color_depth(&viafbinfo->var, |
2023 | &viafbinfo->fix); | 2023 | &viafbinfo->fix); |