aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_fb_helper.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2014-02-26 15:16:03 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-03-17 06:23:07 -0400
commit366d48070008a0846a099b23efef297451b05640 (patch)
tree7553496a8b43fe08cb8ba43d75012504e8f3f07c /drivers/gpu/drm/drm_fb_helper.c
parent24d01805ca652434e1ba7b83a1370cb42b618954 (diff)
drm/fb-helper: Use drm_fb_helper_restore_fbdev_mode() in drm_fb_helper_set_par()
Use drm_fb_helper_restore_fbdev_mode() in drm_fb_helper_set_par() to make sure extra planes get disabled whenever fbcon takes over. Otherwise the code in drm_fb_helper_set_par() was already doing the exact same thing as drm_fb_helper_restore_fbdev_mode(), so this doesn't change the behaviour in any other way. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/drm_fb_helper.c')
-rw-r--r--drivers/gpu/drm/drm_fb_helper.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c
index 98a03639b413..e5208e072ac7 100644
--- a/drivers/gpu/drm/drm_fb_helper.c
+++ b/drivers/gpu/drm/drm_fb_helper.c
@@ -809,8 +809,6 @@ int drm_fb_helper_set_par(struct fb_info *info)
809 struct drm_fb_helper *fb_helper = info->par; 809 struct drm_fb_helper *fb_helper = info->par;
810 struct drm_device *dev = fb_helper->dev; 810 struct drm_device *dev = fb_helper->dev;
811 struct fb_var_screeninfo *var = &info->var; 811 struct fb_var_screeninfo *var = &info->var;
812 int ret;
813 int i;
814 812
815 if (var->pixclock != 0) { 813 if (var->pixclock != 0) {
816 DRM_ERROR("PIXEL CLOCK SET\n"); 814 DRM_ERROR("PIXEL CLOCK SET\n");
@@ -818,13 +816,7 @@ int drm_fb_helper_set_par(struct fb_info *info)
818 } 816 }
819 817
820 drm_modeset_lock_all(dev); 818 drm_modeset_lock_all(dev);
821 for (i = 0; i < fb_helper->crtc_count; i++) { 819 drm_fb_helper_restore_fbdev_mode(fb_helper);
822 ret = drm_mode_set_config_internal(&fb_helper->crtc_info[i].mode_set);
823 if (ret) {
824 drm_modeset_unlock_all(dev);
825 return ret;
826 }
827 }
828 drm_modeset_unlock_all(dev); 820 drm_modeset_unlock_all(dev);
829 821
830 if (fb_helper->delayed_hotplug) { 822 if (fb_helper->delayed_hotplug) {