drm/fb helper: don't call drm_crtc_helper_set_config
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 11 Jul 2012 14:28:07 +0000 (16:28 +0200)
committerDave Airlie <airlied@redhat.com>
Fri, 20 Jul 2012 01:24:32 +0000 (21:24 -0400)
Go through the interface vtable instead, because not everyone might be
using the crtc helper code.

Cc: dri-devel@lists.freedesktop.org
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_fb_helper.c

index d3f15b9d1d82f609fc4c36c3d2ab65856d7ae0ae..f546d1e8af82f10e1cfe1d9c6c66ec9015bc1a68 100644 (file)
@@ -228,7 +228,7 @@ bool drm_fb_helper_restore_fbdev_mode(struct drm_fb_helper *fb_helper)
        int i, ret;
        for (i = 0; i < fb_helper->crtc_count; i++) {
                struct drm_mode_set *mode_set = &fb_helper->crtc_info[i].mode_set;
-               ret = drm_crtc_helper_set_config(mode_set);
+               ret = mode_set->crtc->funcs->set_config(mode_set);
                if (ret)
                        error = true;
        }