summaryrefslogtreecommitdiffstats
path: root/sys/dev/aac/aac.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/aac/aac.c')
-rw-r--r--sys/dev/aac/aac.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/sys/dev/aac/aac.c b/sys/dev/aac/aac.c
index 619ffd4..0eb036c 100644
--- a/sys/dev/aac/aac.c
+++ b/sys/dev/aac/aac.c
@@ -182,19 +182,12 @@ static int aac_query_disk(struct aac_softc *sc, caddr_t uptr);
#define AAC_CDEV_MAJOR 150
static struct cdevsw aac_cdevsw = {
- aac_open, /* open */
- aac_close, /* close */
- noread, /* read */
- nowrite, /* write */
- aac_ioctl, /* ioctl */
- aac_poll, /* poll */
- nommap, /* mmap */
- nostrategy, /* strategy */
- "aac", /* name */
- AAC_CDEV_MAJOR, /* major */
- nodump, /* dump */
- nopsize, /* psize */
- 0, /* flags */
+ .d_open = aac_open,
+ .d_close = aac_close,
+ .d_ioctl = aac_ioctl,
+ .d_poll = aac_poll,
+ .d_name = "aac",
+ .d_maj = AAC_CDEV_MAJOR,
};
MALLOC_DEFINE(M_AACBUF, "aacbuf", "Buffers for the AAC driver");
OpenPOWER on IntegriCloud