summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Nelson <eric@nelint.com>2016-04-11 15:21:37 -0700
committerTom Rini <trini@konsulko.com>2016-04-18 17:11:41 -0400
commit6a3bf3e57149dcfdb447590049ef6cad6cf7258b (patch)
tree68dd1e2bfa99e6bc1735a612250fd13260e43d30
parentcee752fa8dcf3b589baf7141011675a0c3f2ded6 (diff)
downloadu-boot-imx-6a3bf3e57149dcfdb447590049ef6cad6cf7258b.zip
u-boot-imx-6a3bf3e57149dcfdb447590049ef6cad6cf7258b.tar.gz
u-boot-imx-6a3bf3e57149dcfdb447590049ef6cad6cf7258b.tar.bz2
gunzip.c: use block layer for writes
Call blk_dwrite to ensure that the block cache is notified if enabled and remove build breakage when CONFIG_BLK is enabled. Signed-off-by: Eric Nelson <eric@nelint.com> Reviewed-by: Stephen Warren <swarren@nvidia.com>
-rw-r--r--lib/gunzip.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/gunzip.c b/lib/gunzip.c
index 6d65ccc..bc746d6 100644
--- a/lib/gunzip.c
+++ b/lib/gunzip.c
@@ -232,9 +232,8 @@ int gzwrite(unsigned char *src, int len,
gzwrite_progress(iteration++,
totalfilled,
szexpected);
- blocks_written = dev->block_write(dev, outblock,
- writeblocks,
- writebuf);
+ blocks_written = blk_dwrite(dev, outblock,
+ writeblocks, writebuf);
outblock += blocks_written;
if (ctrlc()) {
puts("abort\n");