Fix wrong environment.h and remove DECLARE_GLOBAL_DATA_PTR
Fixes: e6c156b4b5 (imx: imx7 Support for Manufacturing Protection)
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Gaurav Jain <gaurav.jain@nxp.com>
#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