diff options
author | Steve Rae <srae@broadcom.com> | 2016-06-07 11:19:35 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-06-27 16:36:33 -0400 |
commit | 64ece84854ae49f40e9b9d4d88502247774f9d2f (patch) | |
tree | 5d02749db9a0ef23a4bd25fb66badd054162f3f2 /common/fb_nand.c | |
parent | ac6e5fed31ccd1da18b8ef10542c3534bd2dbd38 (diff) |
fastboot: sparse: remove session-id logic
This "session-id" alogrithm is not required, and currently corrupts
the stored image whenever more the one "session" is required.
Signed-off-by: Steve Rae <srae@broadcom.com>
Diffstat (limited to 'common/fb_nand.c')
-rw-r--r-- | common/fb_nand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/fb_nand.c b/common/fb_nand.c index ae34f4891b6..a0a9839db51 100644 --- a/common/fb_nand.c +++ b/common/fb_nand.c @@ -126,7 +126,7 @@ static int fb_nand_sparse_write(struct sparse_storage *storage, return written / storage->block_sz; } -void fb_nand_flash_write(const char *partname, unsigned int session_id, +void fb_nand_flash_write(const char *partname, void *download_buffer, unsigned int download_bytes, char *response) { @@ -161,7 +161,7 @@ void fb_nand_flash_write(const char *partname, unsigned int session_id, sparse.name = part->name; sparse.write = fb_nand_sparse_write; - ret = store_sparse_image(&sparse, &sparse_priv, session_id, + ret = store_sparse_image(&sparse, &sparse_priv, download_buffer); } else { printf("Flashing raw image at offset 0x%llx\n", |