On Wed, 21 Jan 2004, Jun Sun wrote:
> conswitchp needs to be set whenever CONFIG_VT is selected.
> Currently this job is done individually by each board in its setup
> routine, often in a wrong way.
> The right thing to do is to set the pointer in the common code
> and remove almost two dozens of duplicated and often wrong settings.
> The attached patch is for illustration only. The removal of board settings
> is not complete.
> Comments? Objections and cheers are equally welcome. :)
| --- linux/arch/mips/kernel/setup.c.orig Tue Nov 18 10:01:24 2003
| +++ linux/arch/mips/kernel/setup.c Wed Jan 21 16:00:47 2004
| @@ -471,6 +472,15 @@
| +#ifdef CONFIG_VT
| +#if defined(CONFIG_VGA_CONSOLE)
| + conswitchp = &vga_con;
| +#elif defined(CONFIG_DUMMY_CONSOLE)
| + conswitchp = &dummy_con;
Isn't the #ifdef CONFIG_VT superfluous?
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- firstname.lastname@example.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds