]> git.karo-electronics.de Git - linux-beck.git/commitdiff
gma500: tidy the framebuffer fixme and oddments
authorAlan Cox <alan@linux.intel.com>
Tue, 5 Jul 2011 14:40:56 +0000 (15:40 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 5 Jul 2011 15:20:42 +0000 (08:20 -0700)
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/gma500/psb_fb.c

index 349fff850a1813ee80389e24ba07c2e1c2677cb8..17c3cf6388b553fb225d053b7d6e797290a366d2 100644 (file)
@@ -591,7 +591,6 @@ int psb_fbdev_init(struct drm_device *dev)
 {
        struct psb_fbdev *fbdev;
        struct drm_psb_private *dev_priv = dev->dev_private;
-       int num_crtc;
 
        fbdev = kzalloc(sizeof(struct psb_fbdev), GFP_KERNEL);
        if (!fbdev) {
@@ -602,10 +601,7 @@ int psb_fbdev_init(struct drm_device *dev)
        dev_priv->fbdev = fbdev;
        fbdev->psb_fb_helper.funcs = &psb_fb_helper_funcs;
 
-       /* FIXME: check Medfield */
-       num_crtc = 2;
-
-       drm_fb_helper_init(dev, &fbdev->psb_fb_helper, num_crtc,
+       drm_fb_helper_init(dev, &fbdev->psb_fb_helper, 2,
                                                        INTELFB_CONN_LIMIT);
 
        drm_fb_helper_single_add_all_connectors(&fbdev->psb_fb_helper);