ath79: fix 6.18 kernel leds-reset driver build error

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>
This commit is contained in:
Shiji Yang 2026-04-04 17:50:55 +08:00 committed by Nick Hainke
parent 1e2a5b97fc
commit 9b76c858e0

View 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);
+