From: Simon Glass Date: Wed, 17 May 2017 14:22:40 +0000 (-0600) Subject: api: Add a header for api_init() X-Git-Tag: v2017.07-rc1~69 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=12d738ae4c97c551df6ed0ebe93406683f6032c1;p=u-boot api: Add a header for api_init() Put this in its own header instead of using common.h. Signed-off-by: Simon Glass --- diff --git a/common/board_r.c b/common/board_r.c index 00ba319ca7..bd77d646a1 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -11,6 +11,7 @@ */ #include +#include /* TODO: can we just include all these headers whether needed or not? */ #if defined(CONFIG_CMD_BEDBUG) #include diff --git a/include/api.h b/include/api.h new file mode 100644 index 0000000000..85817f3400 --- /dev/null +++ b/include/api.h @@ -0,0 +1,13 @@ +/* + * Copyright (c) 2017 Google, Inc + * Written by Simon Glass + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#ifndef __API_H +#define __API_H + +void api_init(void); + +#endif diff --git a/include/common.h b/include/common.h index 8b64407fd1..fb4e79bb39 100644 --- a/include/common.h +++ b/include/common.h @@ -465,9 +465,6 @@ void jumptable_init(void); /* common/kallsysm.c */ const char *symbol_lookup(unsigned long addr, unsigned long *caddr); -/* api/api.c */ -void api_init (void); - /* common/memsize.c */ long get_ram_size (long *, long); phys_size_t get_effective_memsize(void);