From 4a2450ac6534a7b5b56003f53d52f0e7291f3b05 Mon Sep 17 00:00:00 2001 From: Ye Li Date: Fri, 14 May 2021 22:54:28 -0700 Subject: [PATCH] MLK-25497 nand: mxs_nand_spl: Fix nand_spl_adjust_offset issue Wrong offset was returned in commit e849aaa (LF-3483-2 nand: mxs_nand_spl: Implement the nand_spl_adjust_offset) Fix the issue by removing the sector. Signed-off-by: Ye Li Reviewed-by: Peng Fan --- drivers/mtd/nand/raw/mxs_nand_spl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/mxs_nand_spl.c b/drivers/mtd/nand/raw/mxs_nand_spl.c index 4fbf90b8b1..aa6780d900 100644 --- a/drivers/mtd/nand/raw/mxs_nand_spl.c +++ b/drivers/mtd/nand/raw/mxs_nand_spl.c @@ -294,5 +294,5 @@ void nand_deselect(void) u32 nand_spl_adjust_offset(u32 sector, u32 offs) { /* Handle the offset adjust in nand_spl_load_image,*/ - return offs + sector; + return offs; } -- 2.17.1