]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[POWERPC] Set udbg_console index to 0
authorMichael Ellerman <michael@ellerman.id.au>
Thu, 24 Apr 2008 05:13:13 +0000 (15:13 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 24 Apr 2008 11:08:11 +0000 (21:08 +1000)
commitc7afb4e22961b5ec88eb6f7b81260dafa9f287c7
tree8a7d966e1547598331019155de0c3f9aadcc0a29
parent90035fe378c7459ba19c43c63d5f878284224ce4
[POWERPC] Set udbg_console index to 0

Because the udbg_console has CON_ENABLED set, it's possible that when we
register it with the console code the index won't be set. This leads to
slightly confusing boot messages like:

[    0.000000] console [udbg-1] enabled

We could remove CON_ENABLED, but we don't want to do that, we always
want the udbg console to be activated, even if the user specified some
other console on the command line.

The simplest fix seems to be just to set the index to 0 by hand. There
is no issue with duplicate udbg consoles, as we guard against registering
multiple times in register_early_udbg_console().

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/udbg.c