From 4371c6315c857bad4243857b89e8a92f6451c0c1 Mon Sep 17 00:00:00 2001 From: "Keith M. Wesolowski" Date: Mon, 29 Dec 2003 01:02:05 -0800 Subject: [SPARC]: Fix serial console selection. Add a generic add_preferred_console() to printk.c so that other platforms, such as MIPS for example, can sanely fix this problem as well. --- include/linux/console.h | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'include/linux/console.h') diff --git a/include/linux/console.h b/include/linux/console.h index cdff9de7ee71..6db0056fb4c9 100644 --- a/include/linux/console.h +++ b/include/linux/console.h @@ -70,18 +70,6 @@ void give_up_console(const struct consw *sw); #define CM_ERASE (2) #define CM_MOVE (3) -/* - * Array of consoles built from command line options (console=) - */ -struct console_cmdline -{ - char name[8]; /* Name of the driver */ - int index; /* Minor dev. to use */ - char *options; /* Options for the driver */ -}; -#define MAX_CMDLINECONSOLES 8 -extern struct console_cmdline console_list[MAX_CMDLINECONSOLES]; - /* * The interface for a console, or any other device that * wants to capture console messages (printer driver?) @@ -106,6 +94,7 @@ struct console struct console *next; }; +extern int add_preferred_console(char *name, int idx, char *options); extern void register_console(struct console *); extern int unregister_console(struct console *); extern struct console *console_drivers; -- cgit v1.2.3