[U-Boot] [PATCH] x86: tangier: Fix pinmux warning
Bin Meng
bmeng.cn at gmail.com
Mon Sep 17 09:33:30 UTC 2018
Currently the code builds with a warning:
w+../arch/x86/cpu/tangier/pinmux.c: In function 'tangier_pinctrl_probe':
w+../arch/x86/cpu/tangier/pinmux.c:175:11: warning: format '%d' expects
argument of type 'int', but argument 3 has type 'ofnode {aka union
ofnode_union}' [-Wformat=]
This fixes it.
Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
---
arch/x86/cpu/tangier/pinmux.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/cpu/tangier/pinmux.c b/arch/x86/cpu/tangier/pinmux.c
index bbb3d7b..fdd6530 100644
--- a/arch/x86/cpu/tangier/pinmux.c
+++ b/arch/x86/cpu/tangier/pinmux.c
@@ -172,8 +172,8 @@ static int tangier_pinctrl_probe(struct udevice *dev)
ofnode_for_each_subnode(pin_node, dev_ofnode(dev)) {
ret = mrfld_pinctrl_cfg_pin(pin_node);
if (ret) {
- pr_err("%s: invalid configuration for the pin %d\n",
- __func__, pin_node);
+ pr_err("%s: invalid configuration for the pin %ld\n",
+ __func__, pin_node.of_offset);
}
}
--
2.7.4
More information about the U-Boot
mailing list