Update kernel packages to be compatible with kernel 6.12.
Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
}
}
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6,11,0)
static int gpio_keys_remove(struct platform_device *pdev)
+#else
+static void gpio_keys_remove(struct platform_device *pdev)
+#endif
{
struct gpio_keys_button_dev *bdev = platform_get_drvdata(pdev);
else
gpio_keys_irq_close(bdev);
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6,11,0)
return 0;
+#endif
}
static struct platform_driver gpio_keys_driver = {
return 0;
}
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6,11,0)
static int ltq_mei_remove(struct platform_device *pdev)
+#else
+static void ltq_mei_remove(struct platform_device *pdev)
+#endif
{
int i = 0;
int num;
IFX_MEI_ExitDevice (i);
}
}
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6,11,0)
return 0;
+#endif
}
static const struct of_device_id ltq_mei_match[] = {
#include <linux/atm.h>
#include <linux/clk.h>
#include <linux/interrupt.h>
-#include <linux/version.h>
#ifdef CONFIG_XFRM
#include <net/xfrm.h>
#endif
return ret;
}
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6,11,0)
static int ltq_atm_remove(struct platform_device *pdev)
+#else
+static void ltq_atm_remove(struct platform_device *pdev)
+#endif
{
int port_num;
struct ltq_atm_ops *ops = platform_get_drvdata(pdev);
clear_priv_data();
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6,11,0)
return 0;
+#endif
}
static struct platform_driver ltq_atm_driver = {
* \ingroup IFX_DEU_FUNCTIONS
* \brief remove the loaded crypto algorithms
*/
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6,11,0)
static int ltq_deu_remove(struct platform_device *pdev)
+#else
+static void ltq_deu_remove(struct platform_device *pdev)
+#endif
{
//#ifdef CONFIG_CRYPTO_DEV_PWR_SAVE_MODE
#if defined(CONFIG_CRYPTO_DEV_DES)
#endif
printk("DEU has exited successfully\n");
- return 0;
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6,11,0)
+ return 0;
+#endif
}
* Output:
* none
*/
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6,11,0)
static int ltq_ptm_remove(struct platform_device *pdev)
+#else
+static void ltq_ptm_remove(struct platform_device *pdev)
+#endif
{
int i;
clear_priv_data();
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6,11,0)
return 0;
+#endif
}
static struct platform_driver ltq_ptm_driver = {
return ret;
}
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6,11,0)
static int ltq_ptm_remove(struct platform_device *pdev)
+#else
+static void ltq_ptm_remove(struct platform_device *pdev)
+#endif
{
int i;
ifx_mei_atm_showtime_enter = NULL;
clear_priv_data();
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6,11,0)
return 0;
+#endif
}
#ifndef MODULE
#include <linux/of.h>
#include <linux/of_reserved_mem.h>
#include <linux/platform_device.h>
+#include <linux/version.h>
#define NAME "ubootenv"
return misc_register(&data->misc);
}
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6,11,0)
static int ubootenv_remove(struct platform_device *pdev)
+#else
+static void ubootenv_remove(struct platform_device *pdev)
+#endif
{
struct ubootenv_drvdata *data = platform_get_drvdata(pdev);
data->env = NULL;
misc_deregister(&data->misc);
+
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6,11,0)
return 0;
+#endif
}
static struct platform_driver ubootenv_driver = {