From 95baa6d505ecb711cc8e528f76dc162120edc499 Mon Sep 17 00:00:00 2001 From: Shiji Yang Date: Thu, 16 Apr 2026 18:59:58 +0800 Subject: [PATCH] lantiq: adapt to the 6.18 kernel to fix build errors devm_gpio_request() was removed since kernel 6.17. Convert it to devm_gpio_request_one(). Link: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.18.y&id=a5589313383074c48a1b3751d592a6e084ae0573 Signed-off-by: Shiji Yang Link: https://github.com/openwrt/openwrt/pull/22922 Signed-off-by: Nick Hainke --- .../lantiq/patches-6.18/151-lantiq-ifxmips_pcie-use-of.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/lantiq/patches-6.18/151-lantiq-ifxmips_pcie-use-of.patch b/target/linux/lantiq/patches-6.18/151-lantiq-ifxmips_pcie-use-of.patch index b7bbdf7783f..44f762f526f 100644 --- a/target/linux/lantiq/patches-6.18/151-lantiq-ifxmips_pcie-use-of.patch +++ b/target/linux/lantiq/patches-6.18/151-lantiq-ifxmips_pcie-use-of.patch @@ -262,7 +262,7 @@ Signed-off-by: Eddi De Pieri + + pcie_reset_gpio = of_get_named_gpio(node, "gpio-reset", 0); + if (gpio_is_valid(pcie_reset_gpio)) { -+ int ret = devm_gpio_request(&pdev->dev, pcie_reset_gpio, "pcie-reset"); ++ int ret = devm_gpio_request_one(&pdev->dev, pcie_reset_gpio, GPIOF_OUT_INIT_HIGH, "pcie-reset"); + if (ret) { + dev_err(&pdev->dev, "failed to request gpio %d\n", pcie_reset_gpio); + return ret;