mfi: 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:
@@ -53,15 +53,7 @@
|
||||
#define MFI_LINUX_IOCTL_MIN 0x4d00
|
||||
#define MFI_LINUX_IOCTL_MAX 0x4d04
|
||||
|
||||
static linux_ioctl_function_t mfi_linux_ioctl;
|
||||
static struct linux_ioctl_handler mfi_linux_handler = {mfi_linux_ioctl,
|
||||
MFI_LINUX_IOCTL_MIN,
|
||||
MFI_LINUX_IOCTL_MAX};
|
||||
|
||||
SYSINIT (mfi_register, SI_SUB_KLD, SI_ORDER_MIDDLE,
|
||||
linux_ioctl_register_handler, &mfi_linux_handler);
|
||||
SYSUNINIT(mfi_unregister, SI_SUB_KLD, SI_ORDER_MIDDLE,
|
||||
linux_ioctl_unregister_handler, &mfi_linux_handler);
|
||||
LINUX_IOCTL_SET(mfi, MFI_LINUX_IOCTL_MIN, MFI_LINUX_IOCTL_MAX);
|
||||
|
||||
static struct linux_device_handler mfi_device_handler =
|
||||
{ "mfi", "megaraid_sas", "mfi0", "megaraid_sas_ioctl_node", -1, 0, 1};
|
||||
|
||||
Reference in New Issue
Block a user