[U-Boot] [PATCH 2/6] jffs2: add sector_size field to part_info structure

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Thu Nov 13 19:01:21 CET 2008


On 19:49 Thu 13 Nov     , Ilya Yanok wrote:
> This patch adds sector_size field to part_info structure (used
> by new JFFS2 code).
> 
> Signed-off-by: Ilya Yanok <yanok at emcraft.com>
> ---
>  common/cmd_jffs2.c          |   20 +++++++++++++++++---
>  include/jffs2/load_kernel.h |    1 +
>  2 files changed, 18 insertions(+), 3 deletions(-)
> 
> diff --git a/common/cmd_jffs2.c b/common/cmd_jffs2.c
> index 791a572..e2bf198 100644
> --- a/common/cmd_jffs2.c
> +++ b/common/cmd_jffs2.c
> @@ -339,11 +339,15 @@ static int part_validate_nor(struct mtdids *id, struct part_info *part)
>  	extern flash_info_t flash_info[];
>  	flash_info_t *flash;
>  	int offset_aligned;
> -	u32 end_offset;
> +	u32 end_offset, sector_size = 0;
please spit in two lines

Best Regards,
J.


More information about the U-Boot mailing list