summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-socfpga
diff options
context:
space:
mode:
authorUlrich Ölmann <u.oelmann@pengutronix.de>2016-04-29 19:17:59 +0200
committerSteffen Trumtrar <s.trumtrar@pengutronix.de>2020-06-22 08:13:12 +0200
commit7c70e8e153012ca743ffb3b967bdb112fd6ecfd5 (patch)
tree324cc64c1c447646cb22e449728998dd1f4fd49e /arch/arm/mach-socfpga
parentff087598f4cdc426ba883a8720367a4ff3d6b9fe (diff)
downloadbarebox-7c70e8e153012ca743ffb3b967bdb112fd6ecfd5.tar.gz
barebox-7c70e8e153012ca743ffb3b967bdb112fd6ecfd5.tar.xz
bootstrap_read_devfs(): optionally inform the caller of the buffer size
The size of the buffer allocated in the function is needed if it shall be inspected more closely later. Therefore optionally return it via a new pointer argument. Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-socfpga')
-rw-r--r--arch/arm/mach-socfpga/xload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-socfpga/xload.c b/arch/arm/mach-socfpga/xload.c
index ee7d194427..8be2827e62 100644
--- a/arch/arm/mach-socfpga/xload.c
+++ b/arch/arm/mach-socfpga/xload.c
@@ -53,7 +53,7 @@ static __noreturn int socfpga_xload(void)
socfpga_cyclone5_qspi_init();
for (part = barebox_parts; part->nor_size; part++) {
buf = bootstrap_read_devfs("mtd0", false,
- part->nor_offset, part->nor_size, SZ_1M);
+ part->nor_offset, part->nor_size, SZ_1M, NULL);
if (!buf) {
pr_info("failed to load barebox from QSPI NOR flash at offset %#x\n",
part->nor_offset);