diff options
| author | Zhenlei Huang <zlei@FreeBSD.org> | 2025-10-20 04:28:42 +0000 |
|---|---|---|
| committer | Zhenlei Huang <zlei@FreeBSD.org> | 2025-10-20 04:28:42 +0000 |
| commit | db1844a0e1bcafeb974215033ed682e7fa18cac8 (patch) | |
| tree | dc28185392146db0c86a728ba1405c23b781334a | |
| parent | 8350f46d9808e6183d5f6bd4aa73d4d4e563b574 (diff) | |
aac: 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
| -rw-r--r-- | sys/dev/aac/aac_linux.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/dev/aac/aac_linux.c b/sys/dev/aac/aac_linux.c index 609315f50939..65008c562342 100644 --- a/sys/dev/aac/aac_linux.c +++ b/sys/dev/aac/aac_linux.c @@ -52,15 +52,7 @@ #define AAC_LINUX_IOCTL_MIN 0x0000 #define AAC_LINUX_IOCTL_MAX 0x21ff -static linux_ioctl_function_t aac_linux_ioctl; -static struct linux_ioctl_handler aac_linux_handler = {aac_linux_ioctl, - AAC_LINUX_IOCTL_MIN, - AAC_LINUX_IOCTL_MAX}; - -SYSINIT (aac_linux_register, SI_SUB_KLD, SI_ORDER_MIDDLE, - linux_ioctl_register_handler, &aac_linux_handler); -SYSUNINIT(aac_linux_unregister, SI_SUB_KLD, SI_ORDER_MIDDLE, - linux_ioctl_unregister_handler, &aac_linux_handler); +LINUX_IOCTL_SET(aac, AAC_LINUX_IOCTL_MIN, AAC_LINUX_IOCTL_MAX); static int aac_linux_modevent(module_t mod, int type, void *data) |
