[S390] set preferred console based on conmode
authorHendrik Brueckner <brueckner@linux.vnet.ibm.com>
Sun, 23 Aug 2009 16:09:06 +0000 (18:09 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Sun, 23 Aug 2009 16:10:01 +0000 (18:10 +0200)
commit637952ca689013339b977558061fa4ca8e07e1c1
tree96338ff9702e49eb36940059b6e66cffe352a8a5
parentcf05b824dbb871159e1b4c4f2733b9c9d2f756cf
[S390] set preferred console based on conmode

setup_arch() unconditionally sets the preferred console to ttyS.
This breaks the use of 3270 devices as the console. Provide a new
function to set the default preferred console for s390. The preferred
console depends on the conmode parameter that is used to switch
between 3270 and 3215 terminal/console mode.

Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/setup.c