diff options
Diffstat (limited to 'drivers/char/stallion.c')
-rw-r--r-- | drivers/char/stallion.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/drivers/char/stallion.c b/drivers/char/stallion.c index a547c0c8fb2a..71bfdccfb42e 100644 --- a/drivers/char/stallion.c +++ b/drivers/char/stallion.c | |||
@@ -141,9 +141,11 @@ static struct tty_driver *stl_serial; | |||
141 | * with this termios initially. Basically all it defines is a raw port | 141 | * with this termios initially. Basically all it defines is a raw port |
142 | * at 9600, 8 data bits, 1 stop bit. | 142 | * at 9600, 8 data bits, 1 stop bit. |
143 | */ | 143 | */ |
144 | static struct termios stl_deftermios = { | 144 | static struct ktermios stl_deftermios = { |
145 | .c_cflag = (B9600 | CS8 | CREAD | HUPCL | CLOCAL), | 145 | .c_cflag = (B9600 | CS8 | CREAD | HUPCL | CLOCAL), |
146 | .c_cc = INIT_C_CC, | 146 | .c_cc = INIT_C_CC, |
147 | .c_ispeed = 9600, | ||
148 | .c_ospeed = 9600, | ||
147 | }; | 149 | }; |
148 | 150 | ||
149 | /* | 151 | /* |
@@ -464,7 +466,7 @@ static int stl_cd1400getreg(struct stlport *portp, int regnr); | |||
464 | static int stl_cd1400updatereg(struct stlport *portp, int regnr, int value); | 466 | static int stl_cd1400updatereg(struct stlport *portp, int regnr, int value); |
465 | static int stl_cd1400panelinit(struct stlbrd *brdp, struct stlpanel *panelp); | 467 | static int stl_cd1400panelinit(struct stlbrd *brdp, struct stlpanel *panelp); |
466 | static void stl_cd1400portinit(struct stlbrd *brdp, struct stlpanel *panelp, struct stlport *portp); | 468 | static void stl_cd1400portinit(struct stlbrd *brdp, struct stlpanel *panelp, struct stlport *portp); |
467 | static void stl_cd1400setport(struct stlport *portp, struct termios *tiosp); | 469 | static void stl_cd1400setport(struct stlport *portp, struct ktermios *tiosp); |
468 | static int stl_cd1400getsignals(struct stlport *portp); | 470 | static int stl_cd1400getsignals(struct stlport *portp); |
469 | static void stl_cd1400setsignals(struct stlport *portp, int dtr, int rts); | 471 | static void stl_cd1400setsignals(struct stlport *portp, int dtr, int rts); |
470 | static void stl_cd1400ccrwait(struct stlport *portp); | 472 | static void stl_cd1400ccrwait(struct stlport *portp); |
@@ -493,7 +495,7 @@ static int stl_sc26198updatereg(struct stlport *portp, int regnr, int value); | |||
493 | static int stl_sc26198getglobreg(struct stlport *portp, int regnr); | 495 | static int stl_sc26198getglobreg(struct stlport *portp, int regnr); |
494 | static int stl_sc26198panelinit(struct stlbrd *brdp, struct stlpanel *panelp); | 496 | static int stl_sc26198panelinit(struct stlbrd *brdp, struct stlpanel *panelp); |
495 | static void stl_sc26198portinit(struct stlbrd *brdp, struct stlpanel *panelp, struct stlport *portp); | 497 | static void stl_sc26198portinit(struct stlbrd *brdp, struct stlpanel *panelp, struct stlport *portp); |
496 | static void stl_sc26198setport(struct stlport *portp, struct termios *tiosp); | 498 | static void stl_sc26198setport(struct stlport *portp, struct ktermios *tiosp); |
497 | static int stl_sc26198getsignals(struct stlport *portp); | 499 | static int stl_sc26198getsignals(struct stlport *portp); |
498 | static void stl_sc26198setsignals(struct stlport *portp, int dtr, int rts); | 500 | static void stl_sc26198setsignals(struct stlport *portp, int dtr, int rts); |
499 | static void stl_sc26198enablerxtx(struct stlport *portp, int rx, int tx); | 501 | static void stl_sc26198enablerxtx(struct stlport *portp, int rx, int tx); |
@@ -521,7 +523,7 @@ static void stl_sc26198otherisr(struct stlport *port, unsigned int iack); | |||
521 | typedef struct uart { | 523 | typedef struct uart { |
522 | int (*panelinit)(struct stlbrd *brdp, struct stlpanel *panelp); | 524 | int (*panelinit)(struct stlbrd *brdp, struct stlpanel *panelp); |
523 | void (*portinit)(struct stlbrd *brdp, struct stlpanel *panelp, struct stlport *portp); | 525 | void (*portinit)(struct stlbrd *brdp, struct stlpanel *panelp, struct stlport *portp); |
524 | void (*setport)(struct stlport *portp, struct termios *tiosp); | 526 | void (*setport)(struct stlport *portp, struct ktermios *tiosp); |
525 | int (*getsignals)(struct stlport *portp); | 527 | int (*getsignals)(struct stlport *portp); |
526 | void (*setsignals)(struct stlport *portp, int dtr, int rts); | 528 | void (*setsignals)(struct stlport *portp, int dtr, int rts); |
527 | void (*enablerxtx)(struct stlport *portp, int rx, int tx); | 529 | void (*enablerxtx)(struct stlport *portp, int rx, int tx); |
@@ -1427,10 +1429,10 @@ static void stl_start(struct tty_struct *tty) | |||
1427 | 1429 | ||
1428 | /*****************************************************************************/ | 1430 | /*****************************************************************************/ |
1429 | 1431 | ||
1430 | static void stl_settermios(struct tty_struct *tty, struct termios *old) | 1432 | static void stl_settermios(struct tty_struct *tty, struct ktermios *old) |
1431 | { | 1433 | { |
1432 | struct stlport *portp; | 1434 | struct stlport *portp; |
1433 | struct termios *tiosp; | 1435 | struct ktermios *tiosp; |
1434 | 1436 | ||
1435 | pr_debug("stl_settermios(tty=%p,old=%p)\n", tty, old); | 1437 | pr_debug("stl_settermios(tty=%p,old=%p)\n", tty, old); |
1436 | 1438 | ||
@@ -2468,7 +2470,7 @@ static int __init stl_findpcibrds(void) | |||
2468 | pr_debug("stl_findpcibrds()\n"); | 2470 | pr_debug("stl_findpcibrds()\n"); |
2469 | 2471 | ||
2470 | for (i = 0; (i < stl_nrpcibrds); i++) | 2472 | for (i = 0; (i < stl_nrpcibrds); i++) |
2471 | while ((dev = pci_find_device(stl_pcibrds[i].vendid, | 2473 | while ((dev = pci_get_device(stl_pcibrds[i].vendid, |
2472 | stl_pcibrds[i].devid, dev))) { | 2474 | stl_pcibrds[i].devid, dev))) { |
2473 | 2475 | ||
2474 | /* | 2476 | /* |
@@ -2947,7 +2949,7 @@ static void stl_cd1400ccrwait(struct stlport *portp) | |||
2947 | * settings. | 2949 | * settings. |
2948 | */ | 2950 | */ |
2949 | 2951 | ||
2950 | static void stl_cd1400setport(struct stlport *portp, struct termios *tiosp) | 2952 | static void stl_cd1400setport(struct stlport *portp, struct ktermios *tiosp) |
2951 | { | 2953 | { |
2952 | struct stlbrd *brdp; | 2954 | struct stlbrd *brdp; |
2953 | unsigned long flags; | 2955 | unsigned long flags; |
@@ -3924,7 +3926,7 @@ static void stl_sc26198portinit(struct stlbrd *brdp, struct stlpanel *panelp, st | |||
3924 | * settings. | 3926 | * settings. |
3925 | */ | 3927 | */ |
3926 | 3928 | ||
3927 | static void stl_sc26198setport(struct stlport *portp, struct termios *tiosp) | 3929 | static void stl_sc26198setport(struct stlport *portp, struct ktermios *tiosp) |
3928 | { | 3930 | { |
3929 | struct stlbrd *brdp; | 3931 | struct stlbrd *brdp; |
3930 | unsigned long flags; | 3932 | unsigned long flags; |