X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=arch%2Farm%2Fmach-omap2%2Fboot-common.c;h=26245aa1694e47283c2acdeac8e322ed06fe1b76;hb=dfd6d3a9d471baf8d0f2d543398b0aad5545d297;hp=700e6c2f7985e77053cecd98c797eb17d7d59c9f;hpb=4bd754d8abef61835d5da2ba0c65b2b0d3badec9;p=oweals%2Fu-boot.git diff --git a/arch/arm/mach-omap2/boot-common.c b/arch/arm/mach-omap2/boot-common.c index 700e6c2f79..26245aa169 100644 --- a/arch/arm/mach-omap2/boot-common.c +++ b/arch/arm/mach-omap2/boot-common.c @@ -10,6 +10,7 @@ #include #include +#include #include #include #include @@ -240,8 +241,8 @@ void arch_preboot_os(void) int fb_set_reboot_flag(void) { printf("Setting reboot to fastboot flag ...\n"); - setenv("dofastboot", "1"); - saveenv(); + env_set("dofastboot", "1"); + env_save(); return 0; } #endif