mirror of
https://github.com/DigitalDevices/dddvb.git
synced 2025-03-01 10:35:23 +00:00
fix compilation with newer kernels
This commit is contained in:
parent
b172e83a4b
commit
345c3b8e0d
@ -24,7 +24,11 @@
|
||||
#include "ddbridge.h"
|
||||
#include "ddbridge-io.h"
|
||||
|
||||
#if (KERNEL_VERSION(6, 11, 0) > LINUX_VERSION_CODE)
|
||||
static int __exit octonet_remove(struct platform_device *pdev)
|
||||
#else
|
||||
static void __exit octonet_remove(struct platform_device *pdev)
|
||||
#endif
|
||||
{
|
||||
struct ddb *dev;
|
||||
|
||||
@ -43,7 +47,9 @@ static int __exit octonet_remove(struct platform_device *pdev)
|
||||
ddb_ports_release(dev);
|
||||
ddb_unmap(dev);
|
||||
platform_set_drvdata(pdev, 0);
|
||||
#if (KERNEL_VERSION(6, 11, 0) > LINUX_VERSION_CODE)
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
static int __init octonet_probe(struct platform_device *pdev)
|
||||
|
@ -39,7 +39,9 @@
|
||||
#include <linux/mutex.h>
|
||||
#include <linux/vmalloc.h>
|
||||
#include <asm/div64.h>
|
||||
#if (KERNEL_VERSION(6, 12, 0) > LINUX_VERSION_CODE)
|
||||
#include <asm/unaligned.h>
|
||||
#endif
|
||||
|
||||
#include <media/dvb_frontend.h>
|
||||
#include "mxl5xx.h"
|
||||
|
Loading…
x
Reference in New Issue
Block a user