From: David S. Miller Date: Wed, 23 Aug 2006 22:53:39 +0000 (-0700) Subject: [SERIAL] sunzilog: Mirror the sunsab serial setup bug fix. X-Git-Tag: v3.12-rc1~34256 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b8b99e857d0e258b0da17e55466e5142465d35fd;p=kernel%2Fkernel-generic.git [SERIAL] sunzilog: Mirror the sunsab serial setup bug fix. Signed-off-by: David S. Miller --- diff --git a/drivers/serial/sunzilog.c b/drivers/serial/sunzilog.c index 47bc3d5..d34f336 100644 --- a/drivers/serial/sunzilog.c +++ b/drivers/serial/sunzilog.c @@ -1146,6 +1146,9 @@ static int __init sunzilog_console_setup(struct console *con, char *options) unsigned long flags; int baud, brg; + if (up->port.type != PORT_SUNZILOG) + return -1; + printk(KERN_INFO "Console: ttyS%d (SunZilog zs%d)\n", (sunzilog_reg.minor - 64) + con->index, con->index);