mirror of
https://github.com/tsukumijima/px4_drv.git
synced 2025-07-23 20:20:36 +02:00
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
b4a6f9a9f5 | ||
|
fe259b52b7 | ||
|
5ac1fca737 | ||
|
26e8327823 | ||
|
62cfb11290 |
@@ -10,12 +10,17 @@
|
||||
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/version.h>
|
||||
|
||||
#include "revision.h"
|
||||
#include "px4_usb.h"
|
||||
#include "firmware.h"
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,15,4)
|
||||
static int __init m_init(void)
|
||||
#else
|
||||
int init_module(void)
|
||||
#endif
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
@@ -47,11 +52,20 @@ int init_module(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,15,4)
|
||||
static void __exit m_cleanup(void)
|
||||
#else
|
||||
void cleanup_module(void)
|
||||
#endif
|
||||
{
|
||||
px4_usb_unregister();
|
||||
}
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,15,4)
|
||||
module_init(m_init);
|
||||
module_exit(m_cleanup);
|
||||
#endif
|
||||
|
||||
MODULE_VERSION(PX4_DRV_VERSION);
|
||||
MODULE_AUTHOR("nns779");
|
||||
MODULE_DESCRIPTION("Unofficial Linux driver for PLEX PX4/PX5/PX-MLT series ISDB-T/S receivers");
|
||||
|
Reference in New Issue
Block a user