From fcf7e634fb12f16e5d5a0b3ee3cfafda001a303c Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 21 Feb 2004 20:41:11 +0000 Subject: 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. --- sys/dev/nmdm/nmdm.c | 1 - 1 file changed, 1 deletion(-) (limited to 'sys/dev/nmdm/nmdm.c') diff --git a/sys/dev/nmdm/nmdm.c b/sys/dev/nmdm/nmdm.c index f3440dd..2762506 100644 --- a/sys/dev/nmdm/nmdm.c +++ b/sys/dev/nmdm/nmdm.c @@ -77,7 +77,6 @@ static struct cdevsw nmdm_cdevsw = { .d_read = nmdmread, .d_write = nmdmwrite, .d_ioctl = nmdmioctl, - .d_poll = ttypoll, .d_name = "nmdm", .d_flags = D_TTY | D_PSEUDO, }; -- cgit v1.1