diff options
author | Alan Cox <alan@linux.intel.com> | 2012-03-08 11:01:39 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-03-10 08:05:39 -0500 |
commit | 4578240b48ed33f4377748701616a870fe5a1a94 (patch) | |
tree | 667c7345ae10b4c2d016548f5ed85dfbc0d9e35d /drivers/gpu/drm/gma500/framebuffer.c | |
parent | aa7c62af10b6ba7f0496ee3a1a760ad216426720 (diff) |
gma500: re-order calling on the fix setup so we set up after the DRM layer
Noted by Kirill A Shutemov
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/gma500/framebuffer.c')
-rw-r--r-- | drivers/gpu/drm/gma500/framebuffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/gma500/framebuffer.c b/drivers/gpu/drm/gma500/framebuffer.c index 973822971e8e..110fcad4c124 100644 --- a/drivers/gpu/drm/gma500/framebuffer.c +++ b/drivers/gpu/drm/gma500/framebuffer.c | |||
@@ -463,6 +463,7 @@ static int psbfb_create(struct psb_fbdev *fbdev, | |||
463 | fbdev->psb_fb_helper.fb = fb; | 463 | fbdev->psb_fb_helper.fb = fb; |
464 | fbdev->psb_fb_helper.fbdev = info; | 464 | fbdev->psb_fb_helper.fbdev = info; |
465 | 465 | ||
466 | drm_fb_helper_fill_fix(info, fb->pitches[0], fb->depth); | ||
466 | strcpy(info->fix.id, "psbfb"); | 467 | strcpy(info->fix.id, "psbfb"); |
467 | 468 | ||
468 | info->flags = FBINFO_DEFAULT; | 469 | info->flags = FBINFO_DEFAULT; |
@@ -500,7 +501,6 @@ static int psbfb_create(struct psb_fbdev *fbdev, | |||
500 | info->apertures->ranges[0].size = dev_priv->gtt.stolen_size; | 501 | info->apertures->ranges[0].size = dev_priv->gtt.stolen_size; |
501 | } | 502 | } |
502 | 503 | ||
503 | drm_fb_helper_fill_fix(info, fb->pitches[0], fb->depth); | ||
504 | drm_fb_helper_fill_var(info, &fbdev->psb_fb_helper, | 504 | drm_fb_helper_fill_var(info, &fbdev->psb_fb_helper, |
505 | sizes->fb_width, sizes->fb_height); | 505 | sizes->fb_width, sizes->fb_height); |
506 | 506 | ||