fbdev/sa1100fb: Remove dead code
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 28 May 2019 09:02:36 +0000 (11:02 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 12 Jun 2019 18:27:18 +0000 (20:27 +0200)
Motivated because it contains a struct display, which is a fbcon
internal data structure that I want to rename. It seems to have been
formerly used in drivers, but that's very long time ago.

Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20190528090304.9388-6-daniel.vetter@ffwll.ch
drivers/video/fbdev/sa1100fb.c

index 15ae50063296ed823836066b7e3a4a26a2021d9b..f7f8dee044b1f2e90a67904c87a616f40e456358 100644 (file)
@@ -974,35 +974,10 @@ static void sa1100fb_task(struct work_struct *w)
  */
 static unsigned int sa1100fb_min_dma_period(struct sa1100fb_info *fbi)
 {
-#if 0
-       unsigned int min_period = (unsigned int)-1;
-       int i;
-
-       for (i = 0; i < MAX_NR_CONSOLES; i++) {
-               struct display *disp = &fb_display[i];
-               unsigned int period;
-
-               /*
-                * Do we own this display?
-                */
-               if (disp->fb_info != &fbi->fb)
-                       continue;
-
-               /*
-                * Ok, calculate its DMA period
-                */
-               period = sa1100fb_display_dma_period(&disp->var);
-               if (period < min_period)
-                       min_period = period;
-       }
-
-       return min_period;
-#else
        /*
         * FIXME: we need to verify _all_ consoles.
         */
        return sa1100fb_display_dma_period(&fbi->fb.var);
-#endif
 }
 
 /*