From: Alan Cox Date: Tue, 5 Jul 2011 14:40:56 +0000 (+0100) Subject: gma500: tidy the framebuffer fixme and oddments X-Git-Tag: firefly_0821_release~3680^2~4924^2~398 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1ff6d5fe7c06937c250ed1644077ac0ad74d8aa4;p=firefly-linux-kernel-4.4.55.git gma500: tidy the framebuffer fixme and oddments Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/gma500/psb_fb.c b/drivers/staging/gma500/psb_fb.c index 349fff850a18..17c3cf6388b5 100644 --- a/drivers/staging/gma500/psb_fb.c +++ b/drivers/staging/gma500/psb_fb.c @@ -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);