]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
image-container: Fix incorrect return value
authorYe Li <ye.li@nxp.com>
Thu, 28 Mar 2024 10:50:55 +0000 (18:50 +0800)
committerFabio Estevam <festevam@gmail.com>
Sat, 30 Mar 2024 18:11:56 +0000 (15:11 -0300)
The spl_spi_get_uboot_offs weak function is defined unsigned int.

Signed-off-by: Ye Li <ye.li@nxp.com>
arch/arm/mach-imx/image-container.c

index c9455fe222afa4c8172747e59765326f379c791a..35da0ae04258dbd31ed8778c9a2a80087078af21 100644 (file)
@@ -262,7 +262,7 @@ static int get_imageset_end(void *dev, int dev_type)
 }
 
 #ifdef CONFIG_SPL_SPI_LOAD
-unsigned long spl_spi_get_uboot_offs(struct spi_flash *flash)
+unsigned int spl_spi_get_uboot_offs(struct spi_flash *flash)
 {
        int end;