aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/zs
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2004-06-04 08:02:37 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2004-06-04 08:02:37 +0000
commite451f9b758040542701d72994b457233fe2529a7 (patch)
tree96f709f4adacd5078943626c84918a97005223bc /sys/dev/zs
parentd1afdc6644ad956e9bbfd4e679bf09dc5461bbcd (diff)
downloadsrc-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/zs')
-rw-r--r--sys/dev/zs/zs.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/zs/zs.c b/sys/dev/zs/zs.c
index 98f1c7dd60b0..6de28ed13152 100644
--- a/sys/dev/zs/zs.c
+++ b/sys/dev/zs/zs.c
@@ -528,12 +528,8 @@ zsttyioctl(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;