LF-3483-4 imx: Fix module fuse build break
authorYe Li <ye.li@nxp.com>
Tue, 6 Apr 2021 08:20:14 +0000 (01:20 -0700)
committerYe Li <ye.li@nxp.com>
Thu, 29 Apr 2021 07:56:02 +0000 (00:56 -0700)
Wrong variable name was used, fix it to pass build

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 14546f009decf0b65a0d877326ad852116d99b6e)

arch/arm/mach-imx/mx6/module_fuse.c

index 0f4565e..b58f11c 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) {