summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2021-05-31 09:12:39 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2021-06-02 08:37:23 +0200
commit73a9619b85497d19b74e6a023aa9ce0e88a1143d (patch)
treefc3798b8dcbbf05b39b8d8f378525bc1a1abd993 /arch/arm/mach-at91
parent829d119ed6b70d13a489442d8a545cf1e66bdc7b (diff)
downloadbarebox-73a9619b85497d19b74e6a023aa9ce0e88a1143d.tar.gz
barebox-73a9619b85497d19b74e6a023aa9ce0e88a1143d.tar.xz
ARM: report probe error at arm_add_mem_device() callsites on failure
Failure to add one memory bank shouldn't prevent the driver from trying to add other memory banks, but the user should be informed as this points at a misconfiguration. Have the probe functions eventually fail with -EBUSY in such a case. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20210531071239.30653-7-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-at91')
-rw-r--r--arch/arm/mach-at91/ddramc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm/mach-at91/ddramc.c b/arch/arm/mach-at91/ddramc.c
index 0aece5345f..8f70b4ada2 100644
--- a/arch/arm/mach-at91/ddramc.c
+++ b/arch/arm/mach-at91/ddramc.c
@@ -44,9 +44,7 @@ static int sama5_ddr_probe(struct device_d *dev)
return PTR_ERR(iores);
base = IOMEM(iores->start);
- arm_add_mem_device("ram0", SAMA5_DDRCS, sama5_ramsize(base));
-
- return 0;
+ return arm_add_mem_device("ram0", SAMA5_DDRCS, sama5_ramsize(base));
}
static struct of_device_id sama5_ddr_dt_ids[] = {