Skip to contentSkip to conversation

arm: mx6: module_fuse: fix build failure due to wrong argument name

PATCH In review Giulio Benetti 4 participants 5 messages Apr 6, 2023 – Jul 11, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: mx6: module_fuse: fix build failure due to wrong argument name

nodeoff variable should be variable off returned by fdt_path_offset() so let's rename it to off.

---
 arch/arm/mach-imx/mx6/module_fuse.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-imx/mx6/module_fuse.c +1 -1
index 0f4565e311..b58f11c1e5 100644
@@ -206,7 +206,7 @@ int ft_system_setup(void *blob, struct bd_info *bd)
 			if (off < 0)
 				continue; /* Not found, skip it */
 add_status:
-			rc = fdt_setprop(blob, nodeoff, "status", status,
+			rc = fdt_setprop(blob, off, "status", status,
 					 strlen(status) + 1);
 			if (rc) {
 				if (rc == -FDT_ERR_NOSPACE) {
Signature · 1 line
2.34.1
#4 lore raw

PATCH 1/1 arm: mx6: module_fuse: fix build failure due to wrong argument name

In reply to Giulio Benetti
Quoted 5 lines

nodeoff variable should be variable off returned by fdt_path_offset() so let's rename it to off.

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,        Managing Director: Erika Unter  
HRB 165235 Munich,   Office: Kirchenstr.5, 82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected]
=====================================================================