]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ramips: eip93: use remove_new
authorRosen Penev <rosenp@gmail.com>
Sat, 26 Apr 2025 22:39:30 +0000 (15:39 -0700)
committerChristian Marangi <ansuelsmth@gmail.com>
Thu, 1 May 2025 23:34:19 +0000 (01:34 +0200)
Compatibility fix for kernel 6.12

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18660
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
target/linux/ramips/patches-6.6/860-ramips-add-eip93-driver.patch

index de7e37817c0a337bc9519e3382f8dce22f123b10..2307b42bdead6d724b9af2ca6d5dc30d2425dea9 100644 (file)
 +#endif /* _EIP93_DES_H_ */
 --- /dev/null
 +++ b/drivers/crypto/mtk-eip93/eip93-main.c
-@@ -0,0 +1,465 @@
+@@ -0,0 +1,463 @@
 +// SPDX-License-Identifier: GPL-2.0
 +/*
 + * Copyright (C) 2019 - 2021
 +      return 0;
 +}
 +
-+static int mtk_crypto_remove(struct platform_device *pdev)
++static void mtk_crypto_remove(struct platform_device *pdev)
 +{
 +      struct mtk_device *mtk = platform_get_drvdata(pdev);
 +
 +      mtk_unregister_algs(ARRAY_SIZE(mtk_algs));
 +      mtk_cleanup(mtk);
 +      dev_info(mtk->dev, "EIP93 removed.\n");
-+
-+      return 0;
 +}
 +
 +#if defined(CONFIG_OF)
 +
 +static struct platform_driver mtk_crypto_driver = {
 +      .probe = mtk_crypto_probe,
-+      .remove = mtk_crypto_remove,
++      .remove_new = mtk_crypto_remove,
 +      .driver = {
 +              .name = "mtk-eip93",
 +              .of_match_table = of_match_ptr(mtk_crypto_of_match),