[PATCH] modedb cleanup

From: James Simmons (jsimmons@acsu.buffalo.edu)
Date: Sun May 07 2000 - 19:16:26 EST


Hi!

     This patch removes PROC_CONSOLE from modedb.c since it already is
located in fbcon.c.

Q: Why did they deprecate a.out support in linux?
A: Because a nasty coff is bad for your elf.

James Simmons [jsimmons@linux-fbdev.org] ____/|
fbdev/gfx developer \ o.O|
http://www.linux-fbdev.org =(_)=
http://linuxgfx.sourceforge.net U

--- modedb.c.orig Sun May 7 11:35:21 2000
+++ modedb.c Sun May 7 11:35:57 2000
@@ -14,6 +14,7 @@
 #include <linux/console_struct.h>
 #include <linux/sched.h>
 
+#include <video/fbcon.h>
 
 #undef DEBUG
 
@@ -252,28 +253,6 @@
                 return val;
         }
     }
-}
-
-static int PROC_CONSOLE(const struct fb_info *info)
-{
- int fgc;
-
- if (info->display_fg != NULL)
- fgc = info->display_fg->vc_num;
- else
- return -1;
-
- if (!current->tty)
- return fgc;
-
- if (current->tty->driver.type != TTY_DRIVER_TYPE_CONSOLE)
- /* XXX Should report error here? */
- return fgc;
-
- if (MINOR(current->tty->device) < 1)
- return fgc;
-
- return MINOR(current->tty->device) - 1;
 }
 
 int __fb_try_mode(struct fb_var_screeninfo *var, struct fb_info *info,

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun May 07 2000 - 21:00:21 EST