diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-06-04 08:02:37 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-06-04 08:02:37 +0000 |
commit | e451f9b758040542701d72994b457233fe2529a7 (patch) | |
tree | 96f709f4adacd5078943626c84918a97005223bc /sys/dev/sab | |
parent | d1afdc6644ad956e9bbfd4e679bf09dc5461bbcd (diff) | |
download | src-e451f9b758040542701d72994b457233fe2529a7.tar.gz src-e451f9b758040542701d72994b457233fe2529a7.zip |
Make the remaining serial drivers call ttyioctl() rather than calling
the linedisc directly.
Notes
Notes:
svn path=/head/; revision=130057
Diffstat (limited to 'sys/dev/sab')
-rw-r--r-- | sys/dev/sab/sab.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/sab/sab.c b/sys/dev/sab/sab.c index de8873163ac7..e546e24a4bc1 100644 --- a/sys/dev/sab/sab.c +++ b/sys/dev/sab/sab.c @@ -731,12 +731,8 @@ sabttyioctl(dev_t dev, u_long cmd, caddr_t data, int flags, struct thread *td) sc = dev->si_drv1; tp = dev->si_tty; - error = (*linesw[tp->t_line].l_ioctl)(tp, cmd, data, flags, td); - if (error != ENOIOCTL) - return (error); - - error = ttioctl(tp, cmd, data, flags); - if (error != ENOIOCTL) + error = ttyioctl(dev, cmd, data, flags, td); + if (error != ENOTTY) return (error); error = 0; |