summaryrefslogtreecommitdiff
path: root/sys/dev/usb/urio.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb/urio.c')
-rw-r--r--sys/dev/usb/urio.c20
1 files changed, 7 insertions, 13 deletions
diff --git a/sys/dev/usb/urio.c b/sys/dev/usb/urio.c
index e5f6cc75b01eb..3b45bb4b758fb 100644
--- a/sys/dev/usb/urio.c
+++ b/sys/dev/usb/urio.c
@@ -116,19 +116,13 @@ d_ioctl_t urioioctl;
#define URIO_CDEV_MAJOR 143
Static struct cdevsw urio_cdevsw = {
- /* open */ urioopen,
- /* close */ urioclose,
- /* read */ urioread,
- /* write */ uriowrite,
- /* ioctl */ urioioctl,
- /* poll */ nopoll,
- /* mmap */ nommap,
- /* strategy */ nostrategy,
- /* name */ "urio",
- /* maj */ URIO_CDEV_MAJOR,
- /* dump */ nodump,
- /* psize */ nopsize,
- /* flags */ 0,
+ .d_open = urioopen,
+ .d_close = urioclose,
+ .d_read = urioread,
+ .d_write = uriowrite,
+ .d_ioctl = urioioctl,
+ .d_name = "urio",
+ .d_maj = URIO_CDEV_MAJOR,
#if __FreeBSD_version < 500014
-1
#endif