Merge pull request #34 from masnagam/fix-driver-init_exit

driver: `__init` と `__exit` を指定
This commit is contained in:
tsukumi
2025-07-20 12:18:25 +09:00
committed by GitHub

View File

@@ -17,7 +17,7 @@
#include "firmware.h"
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,15,4)
static int m_init(void)
static int __init m_init(void)
#else
int init_module(void)
#endif
@@ -53,7 +53,7 @@ int init_module(void)
}
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,15,4)
static void m_cleanup(void)
static void __exit m_cleanup(void)
#else
void cleanup_module(void)
#endif