提交 d8da8298 编写于 作者: M Masahiro Yamada 提交者: Tom Rini

autoboot: rename abortboot_{keyed, normal} to __abortboot

Because abortboot_keyed() and abortboot_normal() are not compiled
at the same time, we can rename both of them to __abortboot().
This allows to drop #ifdef from the caller.
Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: NStefan Roese <sr@denx.de>
Reviewed-by: NSimon Glass <sjg@chromium.org>
Reviewed-by: NHeiko Schocher <hs@denx.de>
上级 2fbb8462
......@@ -182,7 +182,7 @@ static int passwd_abort(uint64_t etime)
* Watch for 'delay' seconds for autoboot stop or autoboot delay string.
* returns: 0 - no key string, allow autoboot 1 - got key string, abort
*/
static int abortboot_keyed(int bootdelay)
static int __abortboot(int bootdelay)
{
int abort;
uint64_t etime = endtick(bootdelay);
......@@ -216,7 +216,7 @@ static int abortboot_keyed(int bootdelay)
static int menukey;
#endif
static int abortboot_normal(int bootdelay)
static int __abortboot(int bootdelay)
{
int abort = 0;
unsigned long ts;
......@@ -274,11 +274,7 @@ static int abortboot_normal(int bootdelay)
static int abortboot(int bootdelay)
{
#ifdef CONFIG_AUTOBOOT_KEYED
return abortboot_keyed(bootdelay);
#else
return abortboot_normal(bootdelay);
#endif
return __abortboot(bootdelay);
}
static void process_fdt_options(const void *blob)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册