diff options
author | phk <phk@FreeBSD.org> | 2001-05-23 17:51:43 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2001-05-23 17:51:43 +0000 |
commit | 843f91864fa61759326ea32e976c53f33211f5e0 (patch) | |
tree | ffa40699a1a8ed880b00bc0174c5460329c1e2b7 | |
parent | c8d4d78546538496d4cac6d6cf12ca82333f3913 (diff) | |
download | FreeBSD-src-843f91864fa61759326ea32e976c53f33211f5e0.zip FreeBSD-src-843f91864fa61759326ea32e976c53f33211f5e0.tar.gz |
Remove the empty uscannerioctl() and use noioctl() instead.
-rw-r--r-- | sys/dev/usb/uscanner.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/dev/usb/uscanner.c b/sys/dev/usb/uscanner.c index f7efb33..4a4c4c5 100644 --- a/sys/dev/usb/uscanner.c +++ b/sys/dev/usb/uscanner.c @@ -202,7 +202,6 @@ d_open_t uscanneropen; d_close_t uscannerclose; d_read_t uscannerread; d_write_t uscannerwrite; -d_ioctl_t uscannerioctl; d_poll_t uscannerpoll; #define USCANNER_CDEV_MAJOR 156 @@ -212,7 +211,7 @@ Static struct cdevsw uscanner_cdevsw = { /* close */ uscannerclose, /* read */ uscannerread, /* write */ uscannerwrite, - /* ioctl */ uscannerioctl, + /* ioctl */ noioctl, /* poll */ uscannerpoll, /* mmap */ nommap, /* strategy */ nostrategy, @@ -661,12 +660,6 @@ uscannerpoll(dev, events, p) return (revents); } -int -uscannerioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct proc *p) -{ - return (EINVAL); -} - #if defined(__FreeBSD__) DRIVER_MODULE(uscanner, uhub, uscanner_driver, uscanner_devclass, usbd_driver_load, 0); #endif |