]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ARM: OMAP: Check STI channel value before registering console driver
authorMikko Ylinen <mikko.k.ylinen@nokia.com>
Mon, 7 Aug 2006 13:25:41 +0000 (16:25 +0300)
committerJuha Yrjola <juha.yrjola@solidboot.com>
Mon, 7 Aug 2006 13:25:41 +0000 (16:25 +0300)
commit7245d8ee22276e6a0b4986c4900040c1f315facc
tree246bdc34d2dbffc482cd4a4c9c7406c56007b6ad
parent6b411907432fe97bce3e6a253f6b98ab6c105efc
ARM: OMAP: Check STI channel value before registering console driver

Since ab7ad9fe425f03c9f83379509c44f98d155e1424 sti-console puts
crap into STI if serial console is configured as a preferred console.

This is due to uninitialized sti_console_channel (0 is a bad channel
value).

The fix is to check the STI channel value before registering the
console driver.

Signed-off-by: Mikko Ylinen <mikko.k.ylinen@nokia.com>
Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
arch/arm/plat-omap/sti/sti-console.c