]> git.sur5r.net Git - u-boot/commitdiff
gunzip.c: use block layer for writes
authorEric Nelson <eric@nelint.com>
Mon, 11 Apr 2016 22:21:37 +0000 (15:21 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 18 Apr 2016 21:11:41 +0000 (17:11 -0400)
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>
lib/gunzip.c

index 6d65ccccffa018582ed33497f5ae9361c6252f23..bc746d655e60aebc84c207c634728b3f1a4e1e40 100644 (file)
@@ -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");