LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH 1/1] Char: mxser_new, fix sparc compile error
@ 2007-01-12 23:41 Jiri Slaby
  0 siblings, 0 replies; only message in thread
From: Jiri Slaby @ 2007-01-12 23:41 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel

mxser_new, fix sparc compile error

On sparc B4000000 is not defined. Use B2000000 for special baudrate, which
is defined on all platforms.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>

---
commit 2826e3a35f34046890c84a77bc2784a184f9bf6a
tree fcfd15b000e703d91361f2b2c3c1bafb0d18b05d
parent 1ed2feac68d7b7cd50ffcd28cb0830b435e7d120
author Jiri Slaby <jirislaby@gmail.com> Sat, 13 Jan 2007 00:27:05 +0059
committer Jiri Slaby <jirislaby@gmail.com> Sat, 13 Jan 2007 00:27:05 +0059

 drivers/char/mxser_new.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/char/mxser_new.c b/drivers/char/mxser_new.c
index 1997390..4c80549 100644
--- a/drivers/char/mxser_new.c
+++ b/drivers/char/mxser_new.c
@@ -189,6 +189,8 @@ static unsigned int mxvar_baud_table1[] = {
 };
 #define BAUD_TABLE_NO ARRAY_SIZE(mxvar_baud_table)
 
+#define B_SPEC	B2000000
+
 static int ioaddr[MXSER_BOARDS] = { 0, 0, 0, 0 };
 static int ttymajor = MXSERMAJOR;
 static int calloutmajor = MXSERCUMAJOR;
@@ -544,7 +546,7 @@ static int mxser_change_speed(struct mxser_port *info,
 		return ret;
 
 	if (mxser_set_baud_method[info->tty->index] == 0) {
-		if ((cflag & (CBAUD | CBAUDEX)) == B4000000)
+		if ((cflag & CBAUD) == B_SPEC)
 			baud = info->speed;
 		else
 			baud = tty_get_baud_rate(info->tty);
@@ -1700,7 +1702,7 @@ static int mxser_ioctl(struct tty_struct *tty, struct file *file,
 			if (speed == mxvar_baud_table[i])
 				break;
 		if (i == BAUD_TABLE_NO) {
-			info->tty->termios->c_cflag |= B4000000;
+			info->tty->termios->c_cflag |= B_SPEC;
 		} else if (speed != 0)
 			info->tty->termios->c_cflag |= mxvar_baud_table1[i];
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-01-12 23:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-12 23:41 [PATCH 1/1] Char: mxser_new, fix sparc compile error Jiri Slaby

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).