X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=common%2Fenv_nand.c;h=38a07f8993f7ab1226044ed2497f05788ee9bfc5;hb=d61ea14885631e58a25feaa81ee82eb464c62d6a;hp=67c4a4e011761b92b92f291714cf9af4181696d3;hpb=4bbd4537835f72b5c46ca6efb38143e431b3dbd5;p=platform%2Fkernel%2Fu-boot.git diff --git a/common/env_nand.c b/common/env_nand.c index 67c4a4e..38a07f8 100644 --- a/common/env_nand.c +++ b/common/env_nand.c @@ -39,10 +39,10 @@ #include #include -#if ((CONFIG_COMMANDS&(CFG_CMD_ENV|CFG_CMD_NAND)) == (CFG_CMD_ENV|CFG_CMD_NAND)) +#if defined(CONFIG_CMD_ENV) && defined(CONFIG_CMD_NAND) #define CMD_SAVEENV #elif defined(CFG_ENV_OFFSET_REDUND) -#error Cannot use CFG_ENV_OFFSET_REDUND without CFG_CMD_ENV & CFG_CMD_NAND +#error Cannot use CFG_ENV_OFFSET_REDUND without CONFIG_CMD_ENV & CONFIG_CMD_NAND #endif #if defined(CFG_ENV_SIZE_REDUND) && (CFG_ENV_SIZE_REDUND != CFG_ENV_SIZE)