summaryrefslogtreecommitdiff
path: root/net/tftp.c
diff options
context:
space:
mode:
authorSughosh Ganu <sughosh.ganu@linaro.org>2024-08-26 17:29:25 +0530
committerTom Rini <trini@konsulko.com>2024-09-03 14:08:50 -0600
commitc7ce26cb368d12e88be3274ba1ed4cda58a15ad8 (patch)
treef3977dbf2137ca6e2985fe4d46f4332f353eb34d /net/tftp.c
parentf4fb154f0a9bbb1d3c6b6e097ff6e3eb1b6216a0 (diff)
lmb: remove the lmb_init_and_reserve() function
With the changes to make the LMB reservations persistent, the common memory regions are being added during board init. Remove the now superfluous lmb_init_and_reserve() function. Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'net/tftp.c')
-rw-r--r--net/tftp.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/tftp.c b/net/tftp.c
index 99b2ab9fca6..b5d227d8bc2 100644
--- a/net/tftp.c
+++ b/net/tftp.c
@@ -718,8 +718,6 @@ static int tftp_init_load_addr(void)
if (CONFIG_IS_ENABLED(LMB)) {
phys_size_t max_size;
- lmb_init_and_reserve(gd->bd, (void *)gd->fdt_blob);
-
max_size = lmb_get_free_size(image_load_addr);
if (!max_size)
return -1;