mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Remove the empty uscannerioctl() and use noioctl() instead.
This commit is contained in:
parent
5a9300c451
commit
3b6c05fa7f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=77051
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user