diff mbox series

[2/2] imx: Fix build error

Message ID 20220419091325.2156655-2-gaurav.jain@nxp.com
State Accepted
Commit 0b0cd1536af4da3c4715ce40b4dd9c84c5241264
Delegated to: Stefano Babic
Headers show
Series [1/2] imx: Update FSL_MFGPROT config for iMX8M | expand

Commit Message

Gaurav Jain April 19, 2022, 9:13 a.m. UTC
From: Ye Li <ye.li@nxp.com>

Fix wrong environment.h and remove DECLARE_GLOBAL_DATA_PTR

Fixes: 30e39ac7c9 (imx: imx7 Support for Manufacturing Protection)
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Gaurav Jain <gaurav.jain@nxp.com>
---
 arch/arm/mach-imx/cmd_mfgprot.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Comments

Stefano Babic April 22, 2022, 8:47 a.m. UTC | #1
> From: Ye Li <ye.li@nxp.com>
> Fix wrong environment.h and remove DECLARE_GLOBAL_DATA_PTR
> Fixes: 30e39ac7c9 (imx: imx7 Support for Manufacturing Protection)
> Signed-off-by: Ye Li <ye.li@nxp.com>
> Reviewed-by: Gaurav Jain <gaurav.jain@nxp.com>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/arch/arm/mach-imx/cmd_mfgprot.c b/arch/arm/mach-imx/cmd_mfgprot.c
index aed3b2f83d..ec8a8756f7 100644
--- a/arch/arm/mach-imx/cmd_mfgprot.c
+++ b/arch/arm/mach-imx/cmd_mfgprot.c
@@ -12,13 +12,11 @@ 
 #include <linux/compiler.h>
 #include <command.h>
 #include <common.h>
-#include <environment.h>
+#include <env.h>
 #include <fsl_sec.h>
 #include <mapmem.h>
 #include <memalign.h>
 
-DECLARE_GLOBAL_DATA_PTR;
-
 /**
  * do_mfgprot() - Handle the "mfgprot" command-line command
  * @cmdtp:  Command data struct pointer