aacraid: Migrate to use macro LINUX_IOCTL_SET to register linux ioctl handler
Reviewed by: markj MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D53158
This commit is contained in:
@@ -54,15 +54,7 @@
|
||||
#define AAC_LINUX_IOCTL_MIN 0x0000
|
||||
#define AAC_LINUX_IOCTL_MAX 0x21ff
|
||||
|
||||
static linux_ioctl_function_t aacraid_linux_ioctl;
|
||||
static struct linux_ioctl_handler aacraid_linux_handler = {aacraid_linux_ioctl,
|
||||
AAC_LINUX_IOCTL_MIN,
|
||||
AAC_LINUX_IOCTL_MAX};
|
||||
|
||||
SYSINIT (aacraid_linux_register, SI_SUB_KLD, SI_ORDER_MIDDLE,
|
||||
linux_ioctl_register_handler, &aacraid_linux_handler);
|
||||
SYSUNINIT(aacraid_linux_unregister, SI_SUB_KLD, SI_ORDER_MIDDLE,
|
||||
linux_ioctl_unregister_handler, &aacraid_linux_handler);
|
||||
LINUX_IOCTL_SET(aacraid, AAC_LINUX_IOCTL_MIN, AAC_LINUX_IOCTL_MAX);
|
||||
|
||||
static int
|
||||
aacraid_linux_modevent(module_t mod, int type, void *data)
|
||||
|
||||
Reference in New Issue
Block a user