From: Jiri Slaby Date: Fri, 8 Dec 2006 10:38:34 +0000 (-0800) Subject: [PATCH] Char: mxser_new, clean macros X-Git-Tag: v2.6.20-rc1~34^2~213 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a8b74de92ef5b53d45d32934955cbb6e14812a5f;p=linux-2.6-omap-h63xx.git [PATCH] Char: mxser_new, clean macros Celan redundant macros. Signed-off-by: Jiri Slaby Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/mxser_new.c b/drivers/char/mxser_new.c index c06c5920bf1..355fbf2e444 100644 --- a/drivers/char/mxser_new.c +++ b/drivers/char/mxser_new.c @@ -54,11 +54,10 @@ #define MXSERCUMAJOR 175 #define MXSER_EVENT_TXLOW 1 -#define MXSER_EVENT_HANGUP 2 #define MXSER_BOARDS 4 /* Max. boards */ -#define MXSER_PORTS 32 /* Max. ports */ #define MXSER_PORTS_PER_BOARD 8 /* Max. ports per board */ +#define MXSER_PORTS (MXSER_BOARDS * MXSER_PORTS_PER_BOARD) #define MXSER_ISR_PASS_LIMIT 99999L #define MXSER_ERR_IOADDR -1 @@ -66,9 +65,6 @@ #define MXSER_ERR_IRQ_CONFLIT -3 #define MXSER_ERR_VECTOR -4 -#define SERIAL_TYPE_NORMAL 1 -#define SERIAL_TYPE_CALLOUT 2 - #define WAKEUP_CHARS 256 #define UART_MCR_AFE 0x20 @@ -365,14 +361,10 @@ static void process_txrx_fifo(struct mxser_port *info) static void mxser_do_softint(void *private_) { struct mxser_port *info = private_; - struct tty_struct *tty; - - tty = info->tty; + struct tty_struct *tty = info->tty; if (test_and_clear_bit(MXSER_EVENT_TXLOW, &info->event)) tty_wakeup(tty); - if (test_and_clear_bit(MXSER_EVENT_HANGUP, &info->event)) - tty_hangup(tty); } static unsigned char mxser_get_msr(int baseaddr, int mode, int port)