[PATCH] arm: imx: Fix incorrect return value

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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-imx/image-container.c b/arch/arm/mach-imx/image-container.c index c9455fe..35da0ae 100644 --- a/arch/arm/mach-imx/image-container.c +++ b/arch/arm/mach-imx/image-container.c @@ -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;

On Thu, Mar 28, 2024 at 7:51 AM Ye Li ye.li@nxp.com wrote:
The spl_spi_get_uboot_offs weak function is defined unsigned int.
Signed-off-by: Ye Li ye.li@nxp.com
The original Subject is too generic, I changed it to:
image-container: Fix incorrect return value
Applied to u-boot-imx/next, thanks.
participants (2)
-
Fabio Estevam
-
Ye Li