summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeresa Remmet <t.remmet@phytec.de>2018-08-28 09:32:50 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2018-08-29 08:56:51 +0200
commit7daba4205afd1cffe690aee1f6857b5fb3566e14 (patch)
treeec23daa601849d333a0f160b67f12e51ed947d5d
parent7b24d3240adc096414b40ad462e14fc14efd537f (diff)
downloadbarebox-7daba4205afd1cffe690aee1f6857b5fb3566e14.tar.gz
arm: mach-omap: bbu_emmc: Fix return value
Update handler returned the written bytes of the partition table on success instead of 0. Return 0 or error code now. Signed-off-by: Teresa Remmet <t.remmet@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/mach-omap/am33xx_bbu_emmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap/am33xx_bbu_emmc.c b/arch/arm/mach-omap/am33xx_bbu_emmc.c
index d3adb37..1fd7222 100644
--- a/arch/arm/mach-omap/am33xx_bbu_emmc.c
+++ b/arch/arm/mach-omap/am33xx_bbu_emmc.c
@@ -73,7 +73,7 @@ error_save_part_table:
error:
close(fd);
- return ret;
+ return (ret > 0) ? 0 : ret;
}
int am33xx_bbu_emmc_mlo_register_handler(const char *name, char *devicefile)