diff options
Diffstat (limited to 'drivers/char/epca.c')
-rw-r--r-- | drivers/char/epca.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/char/epca.c b/drivers/char/epca.c index 88fc24fc4392..de5be30484ad 100644 --- a/drivers/char/epca.c +++ b/drivers/char/epca.c | |||
@@ -209,7 +209,6 @@ static void digi_send_break(struct channel *ch, int msec); | |||
209 | static void setup_empty_event(struct tty_struct *tty, struct channel *ch); | 209 | static void setup_empty_event(struct tty_struct *tty, struct channel *ch); |
210 | void epca_setup(char *, int *); | 210 | void epca_setup(char *, int *); |
211 | 211 | ||
212 | static int get_termio(struct tty_struct *, struct termio __user *); | ||
213 | static int pc_write(struct tty_struct *, const unsigned char *, int); | 212 | static int pc_write(struct tty_struct *, const unsigned char *, int); |
214 | static int pc_init(void); | 213 | static int pc_init(void); |
215 | static int init_PCI(void); | 214 | static int init_PCI(void); |
@@ -2362,15 +2361,6 @@ static int pc_ioctl(struct tty_struct *tty, struct file * file, | |||
2362 | 2361 | ||
2363 | switch (cmd) | 2362 | switch (cmd) |
2364 | { /* Begin switch cmd */ | 2363 | { /* Begin switch cmd */ |
2365 | |||
2366 | #if 0 /* Handled by calling layer properly */ | ||
2367 | case TCGETS: | ||
2368 | if (copy_to_user(argp, tty->termios, sizeof(struct ktermios))) | ||
2369 | return -EFAULT; | ||
2370 | return 0; | ||
2371 | case TCGETA: | ||
2372 | return get_termio(tty, argp); | ||
2373 | #endif | ||
2374 | case TCSBRK: /* SVID version: non-zero arg --> no break */ | 2364 | case TCSBRK: /* SVID version: non-zero arg --> no break */ |
2375 | retval = tty_check_change(tty); | 2365 | retval = tty_check_change(tty); |
2376 | if (retval) | 2366 | if (retval) |
@@ -2735,13 +2725,6 @@ static void setup_empty_event(struct tty_struct *tty, struct channel *ch) | |||
2735 | memoff(ch); | 2725 | memoff(ch); |
2736 | } /* End setup_empty_event */ | 2726 | } /* End setup_empty_event */ |
2737 | 2727 | ||
2738 | /* --------------------- Begin get_termio ----------------------- */ | ||
2739 | |||
2740 | static int get_termio(struct tty_struct * tty, struct termio __user * termio) | ||
2741 | { /* Begin get_termio */ | ||
2742 | return kernel_termios_to_user_termio(termio, tty->termios); | ||
2743 | } /* End get_termio */ | ||
2744 | |||
2745 | /* ---------------------- Begin epca_setup -------------------------- */ | 2728 | /* ---------------------- Begin epca_setup -------------------------- */ |
2746 | void epca_setup(char *str, int *ints) | 2729 | void epca_setup(char *str, int *ints) |
2747 | { /* Begin epca_setup */ | 2730 | { /* Begin epca_setup */ |