summaryrefslogtreecommitdiffstats
path: root/sys/dev/zs/zs.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-02-21 20:41:11 +0000
committerphk <phk@FreeBSD.org>2004-02-21 20:41:11 +0000
commitfcf7e634fb12f16e5d5a0b3ee3cfafda001a303c (patch)
treeb4c7c5f55a2681dc99feaf813fae3d32fabd502e /sys/dev/zs/zs.c
parent32b7c9a433930842533064d829ba214aadf6a67d (diff)
downloadFreeBSD-src-fcf7e634fb12f16e5d5a0b3ee3cfafda001a303c.zip
FreeBSD-src-fcf7e634fb12f16e5d5a0b3ee3cfafda001a303c.tar.gz
Device megapatch 3/6:
Add missing D_TTY flags to various drivers. Complete asserts that dev_t's passed to ttyread(), ttywrite(), ttypoll() and ttykqwrite() have (d_flags & D_TTY) and a struct tty pointer. Make ttyread(), ttywrite(), ttypoll() and ttykqwrite() the default cdevsw methods for D_TTY drivers and remove the explicit initializations in various drivers cdevsw structures.
Diffstat (limited to 'sys/dev/zs/zs.c')
-rw-r--r--sys/dev/zs/zs.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/dev/zs/zs.c b/sys/dev/zs/zs.c
index a6e398f..c3895a6 100644
--- a/sys/dev/zs/zs.c
+++ b/sys/dev/zs/zs.c
@@ -154,13 +154,9 @@ static int zsttyparam(struct tty *tp, struct termios *t);
static struct cdevsw zstty_cdevsw = {
.d_open = zsttyopen,
.d_close = zsttyclose,
- .d_read = ttyread,
- .d_write = ttywrite,
.d_ioctl = zsttyioctl,
- .d_poll = ttypoll,
.d_name = "zstty",
.d_flags = D_TTY,
- .d_kqfilter = ttykqfilter,
};
static struct zstty_softc *zstty_cons;
OpenPOWER on IntegriCloud