aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/rocket.c
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2008-02-07 03:16:33 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-07 11:42:33 -0500
commitf6de0c9864c10d17f2473940c5f81718a5064bd8 (patch)
tree5cef6d08b8d66224eb48ac3429c98734210e19ee /drivers/char/rocket.c
parent68562b79217ce04a30aaf781de1e6dfa84e73fbe (diff)
Char: rocket, remove useless macros
Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Acked-by: Alan Cox <alan@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/rocket.c')
-rw-r--r--drivers/char/rocket.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/char/rocket.c b/drivers/char/rocket.c
index ffb34c43a1c2..68c289fe2dc2 100644
--- a/drivers/char/rocket.c
+++ b/drivers/char/rocket.c
@@ -40,12 +40,6 @@
40 */ 40 */
41 41
42/****** Defines ******/ 42/****** Defines ******/
43#ifdef PCI_NUM_RESOURCES
44#define PCI_BASE_ADDRESS(dev, r) ((dev)->resource[r].start)
45#else
46#define PCI_BASE_ADDRESS(dev, r) ((dev)->base_address[r])
47#endif
48
49#define ROCKET_PARANOIA_CHECK 43#define ROCKET_PARANOIA_CHECK
50#define ROCKET_DISABLE_SIMUSAGE 44#define ROCKET_DISABLE_SIMUSAGE
51 45
@@ -981,7 +975,7 @@ static int rp_open(struct tty_struct *tty, struct file *filp)
981 CHANNEL_t *cp; 975 CHANNEL_t *cp;
982 unsigned long page; 976 unsigned long page;
983 977
984 line = TTY_GET_LINE(tty); 978 line = tty->index;
985 if ((line < 0) || (line >= MAX_RP_PORTS) || ((info = rp_table[line]) == NULL)) 979 if ((line < 0) || (line >= MAX_RP_PORTS) || ((info = rp_table[line]) == NULL))
986 return -ENXIO; 980 return -ENXIO;
987 981
@@ -1166,8 +1160,7 @@ static void rp_close(struct tty_struct *tty, struct file *filp)
1166 if (C_HUPCL(tty)) 1160 if (C_HUPCL(tty))
1167 sClrDTR(cp); 1161 sClrDTR(cp);
1168 1162
1169 if (TTY_DRIVER_FLUSH_BUFFER_EXISTS(tty)) 1163 rp_flush_buffer(tty);
1170 TTY_DRIVER_FLUSH_BUFFER(tty);
1171 1164
1172 tty_ldisc_flush(tty); 1165 tty_ldisc_flush(tty);
1173 1166