summaryrefslogtreecommitdiffstats
path: root/sys/dev/adlink
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-09-27 12:01:01 +0000
committerphk <phk@FreeBSD.org>2003-09-27 12:01:01 +0000
commit7099deadda891e55e6cf9b433659c61126568e93 (patch)
treeb97e31a4fdc3440a666206b469045b517017d25e /sys/dev/adlink
parentc21d189c3f13ce3c60be9f7e4b2d8fc554970d12 (diff)
downloadFreeBSD-src-7099deadda891e55e6cf9b433659c61126568e93.zip
FreeBSD-src-7099deadda891e55e6cf9b433659c61126568e93.tar.gz
The present defaults for the open and close for device drivers which
provide no methods does not make any sense, and is not used by any driver. It is a pretty hard to come up with even a theoretical concept of a device driver which would always fail open and close with ENODEV. Change the defaults to be nullopen() and nullclose() which simply does nothing. Remove explicit initializations to these from the drivers which already used them.
Diffstat (limited to 'sys/dev/adlink')
-rw-r--r--sys/dev/adlink/adlink.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/dev/adlink/adlink.c b/sys/dev/adlink/adlink.c
index 53c81de..909f2ba 100644
--- a/sys/dev/adlink/adlink.c
+++ b/sys/dev/adlink/adlink.c
@@ -394,7 +394,6 @@ adlink_intr(void *arg)
static struct cdevsw adlink_cdevsw = {
.d_open = adlink_open,
- .d_close = nullclose,
.d_ioctl = adlink_ioctl,
.d_mmap = adlink_mmap,
.d_name = "adlink",
OpenPOWER on IntegriCloud