gma500: re-order calling on the fix setup so we set up after the DRM layer
authorAlan Cox <alan@linux.intel.com>
Thu, 8 Mar 2012 16:01:39 +0000 (16:01 +0000)
committerDave Airlie <airlied@redhat.com>
Sat, 10 Mar 2012 13:05:39 +0000 (13:05 +0000)
Noted by Kirill A Shutemov

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/gma500/framebuffer.c

index 973822971e8eb0a82fd11084a5937b6f5689be16..110fcad4c1245772c838db3315cf6dc06b8e7075 100644 (file)
@@ -463,6 +463,7 @@ static int psbfb_create(struct psb_fbdev *fbdev,
        fbdev->psb_fb_helper.fb = fb;
        fbdev->psb_fb_helper.fbdev = info;
 
+       drm_fb_helper_fill_fix(info, fb->pitches[0], fb->depth);
        strcpy(info->fix.id, "psbfb");
 
        info->flags = FBINFO_DEFAULT;
@@ -500,7 +501,6 @@ static int psbfb_create(struct psb_fbdev *fbdev,
                info->apertures->ranges[0].size = dev_priv->gtt.stolen_size;
        }
 
-       drm_fb_helper_fill_fix(info, fb->pitches[0], fb->depth);
        drm_fb_helper_fill_var(info, &fbdev->psb_fb_helper,
                                sizes->fb_width, sizes->fb_height);