diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-08-13 14:30:40 +0800 |
---|---|---|
committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2012-08-13 14:48:13 +0800 |
commit | 73918efe1a720f8837760fd99b6402e39bb8daf9 (patch) | |
tree | 3a0dde677d026ff31b147e115e3116819775f986 /commands/bootm.c | |
parent | 5bc3870d6763eb0bb28a8d5d85061e4a75e8a861 (diff) | |
download | barebox-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.c | 8 |
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; } |