]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ath79: fix 6.18 kernel leds-reset driver build error
authorShiji Yang <yangshiji66@outlook.com>
Sat, 4 Apr 2026 09:50:55 +0000 (17:50 +0800)
committerNick Hainke <vincent@systemli.org>
Sat, 11 Apr 2026 19:11:07 +0000 (21:11 +0200)
Replace reset boolean parameters with flags parameter[1].

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.18.y&id=dad35f7d2fc14e446669d4cab100597a6798eae5
Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/22771
Signed-off-by: Nick Hainke <vincent@systemli.org>
target/linux/ath79/patches-6.18/800-leds-add-reset-controller-based-driver.patch

index 7fe2ae176e0e81a8f0a7bea1be930ad7488cb1c1..febdadd666a2033a0aede4d0fad006efb8b38f50 100644 (file)
@@ -108,7 +108,7 @@ Signed-off-by: John Crispin <john@phrozen.org>
 +                      fwnode_handle_put(child);
 +                      return ERR_PTR(-EINVAL);
 +              }
-+              led->rst = __of_reset_control_get(np, NULL, 0, 0, 0, true);
++              led->rst = __of_reset_control_get(np, NULL, 0, RESET_CONTROL_EXCLUSIVE);
 +              if (IS_ERR(led->rst))
 +                      return ERR_PTR(-EINVAL);
 +