]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mx6: module_fuse: fix build failure due to wrong argument name
authorGiulio Benetti <giulio.benetti@benettiengineering.com>
Thu, 6 Apr 2023 16:17:13 +0000 (18:17 +0200)
committerStefano Babic <sbabic@denx.de>
Tue, 11 Jul 2023 12:40:02 +0000 (14:40 +0200)
nodeoff variable should be variable off returned by fdt_path_offset() so
let's rename it to off.

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Fabio Estevam <festevam@denx.de>
arch/arm/mach-imx/mx6/module_fuse.c

index 0f4565e3117b3c270c6f5529b26434722155b935..b58f11c1e562b338b30b38c41ddc33cb02d76ce9 100644 (file)
@@ -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) {