This patch is to fix the following build failure:
.../.../pinctrl-scmi.c:1009:63: error: macro "of_property_for_each_u32"
passed 5 arguments, but takes just 3
of_property_for_each_u32(np, "pinmux", prop, p, pinmux) {
The reason is that, the commit 914ef7d1a702 ("of: remove internal arguments
from of_property_for_each_u32()") drops two parameters, which are primarily
meant as internal variables for the macro.
So updating the parameters to keep align with above change, can fix the issue.
Signed-off-by: Zhantao Tang <[email protected]>
---
drivers/pinctrl/nxp/pinctrl-scmi.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/pinctrl/nxp/pinctrl-scmi.c
b/drivers/pinctrl/nxp/pinctrl-scmi.c
index 54cf2507c6eb8..50767e6903f53 100644
--- a/drivers/pinctrl/nxp/pinctrl-scmi.c
+++ b/drivers/pinctrl/nxp/pinctrl-scmi.c
@@ -969,9 +969,7 @@ static int scmi_pinctrl_parse_groups(struct scmi_device
*sdev,
struct scmi_pinctrl_pin_group *grp,
u32 index)
{
- const __be32 *p;
struct device *dev = &sdev->dev;
- struct property *prop;
int i, npins;
u32 pinmux = 0U;
@@ -1006,7 +1004,7 @@ static int scmi_pinctrl_parse_groups(struct scmi_device
*sdev,
}
i = 0;
- of_property_for_each_u32(np, "pinmux", prop, p, pinmux) {
+ of_property_for_each_u32(np, "pinmux", pinmux) {
grp->pin_ids[i] = get_pin_no(pinmux);
grp->pin_funcs[i] = get_pin_func(pinmux);
--
2.44.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#14788):
https://lists.yoctoproject.org/g/linux-yocto/message/14788
Mute This Topic: https://lists.yoctoproject.org/mt/111244934/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-