atmel_serial: use existing console options only if BRG is running
authorHaavard Skinnemoen <hskinnemoen@atmel.com>
Fri, 8 Feb 2008 12:21:03 +0000 (04:21 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 8 Feb 2008 17:22:37 +0000 (09:22 -0800)
commit1c0fd82f9375b41f880dc9d7fe32920f33dc945b
tree3616217d3a131035527836707e7bcac92474f884
parent829dd8112274d46c5ed82d46be506762e2c8fcd8
atmel_serial: use existing console options only if BRG is running

If BRGR is zero, the baud rate generator isn't running, so the boot loader
can't have initialized the port.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Acked-by: Andrew Victor <linux@maxim.org.za>
Tested-by: Marc Pignat <marc.pignat@hevs.ch>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/serial/atmel_serial.c