sandbox: Don't use PCI in SPL
[oweals/u-boot.git] / include / common.h
index 3e1a4c98b718523c7e94b95d05f7649bfed1a5b9..3feaae641c797d5802319969fa309298e4ff2b90 100644 (file)
@@ -16,6 +16,7 @@ typedef volatile unsigned short vu_short;
 typedef volatile unsigned char vu_char;
 
 #include <config.h>
+#include <errno.h>
 #include <asm-offsets.h>
 #include <linux/bitops.h>
 #include <linux/types.h>
@@ -807,7 +808,7 @@ void gzwrite_progress_finish(int retcode,
  *                             for files under 4GiB
  */
 int gzwrite(unsigned char *src, int len,
-           struct block_dev_desc *dev,
+           struct blk_desc *dev,
            unsigned long szwritebuf,
            u64 startoffs,
            u64 szexpected);