summaryrefslogtreecommitdiffstats
path: root/commands/bootm.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-08-13 14:30:40 +0800
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-08-13 14:48:13 +0800
commit73918efe1a720f8837760fd99b6402e39bb8daf9 (patch)
tree3a0dde677d026ff31b147e115e3116819775f986 /commands/bootm.c
parent5bc3870d6763eb0bb28a8d5d85061e4a75e8a861 (diff)
downloadbarebox-73918efe1a720f8837760fd99b6402e39bb8daf9.tar.gz
barebox-73918efe1a720f8837760fd99b6402e39bb8daf9.tar.xz
bootm: do not load the initrd in the common code
This need to be handled by the arch bootm as the address can be invalid and provided at arch level. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'commands/bootm.c')
-rw-r--r--commands/bootm.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/commands/bootm.c b/commands/bootm.c
index 3c47ab5d9e..5f858e8a10 100644
--- a/commands/bootm.c
+++ b/commands/bootm.c
@@ -126,14 +126,6 @@ static int bootm_open_initrd_uimage(struct image_data *data)
if (data->initrd_address == UIMAGE_SOME_ADDRESS)
data->initrd_address = data->initrd->header.ih_load;
- if (data->initrd_address != UIMAGE_INVALID_ADDRESS) {
- data->initrd_res = uimage_load_to_sdram(data->initrd,
- data->initrd_num,
- data->initrd_address);
- if (!data->initrd_res)
- return -ENOMEM;
- }
-
return 0;
}