diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-11-26 13:55:53 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-11-29 20:55:50 +0100 |
commit | d1595f140f72e15a730a453827520430659b68b1 (patch) | |
tree | 2d83b3b2511be73a05c987cd750a1edc3ae3035a /arch/arm/lib/bootm.c | |
parent | 06656eb05e61628edc2f8ecf0d4ad4dd23fd4486 (diff) | |
download | barebox-d1595f140f72e15a730a453827520430659b68b1.tar.gz barebox-d1595f140f72e15a730a453827520430659b68b1.tar.xz |
ARM bootm: remove now obsolete args
Now that the arch_number and system_rev variables can be set from
the environment we don't need the old bootm command line switch
mechanism anymore.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/lib/bootm.c')
-rw-r--r-- | arch/arm/lib/bootm.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c index 87bf3b323e..a104aaa371 100644 --- a/arch/arm/lib/bootm.c +++ b/arch/arm/lib/bootm.c @@ -44,36 +44,7 @@ static int do_bootm_linux(struct image_data *data) return -1; } -static int image_handle_cmdline_parse(struct image_data *data, int opt, - char *optarg) -{ - int ret = 1; - int no; - - switch (opt) { - case 'a': - no = simple_strtoul(optarg, NULL, 0); - armlinux_set_architecture(no); - ret = 0; - break; - case 'R': - no = simple_strtoul(optarg, NULL, 0); - armlinux_set_revision(no); - ret = 0; - break; - default: - break; - } - - return ret; -} - static struct image_handler handler = { - .cmdline_options = "a:R:", - .cmdline_parse = image_handle_cmdline_parse, - .help_string = " -a <arch> use architecture number <arch>\n" - " -R <system_rev> use system revison <system_rev>\n", - .bootm = do_bootm_linux, .image_type = IH_OS_LINUX, }; |