api: Add a header for api_init()
authorSimon Glass <sjg@chromium.org>
Wed, 17 May 2017 14:22:40 +0000 (08:22 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 5 Jun 2017 15:02:29 +0000 (11:02 -0400)
Put this in its own header instead of using common.h.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/board_r.c
include/api.h [new file with mode: 0644]
include/common.h

index 00ba319..bd77d64 100644 (file)
@@ -11,6 +11,7 @@
  */
 
 #include <common.h>
+#include <api.h>
 /* TODO: can we just include all these headers whether needed or not? */
 #if defined(CONFIG_CMD_BEDBUG)
 #include <bedbug/type.h>
diff --git a/include/api.h b/include/api.h
new file mode 100644 (file)
index 0000000..85817f3
--- /dev/null
@@ -0,0 +1,13 @@
+/*
+ * Copyright (c) 2017 Google, Inc
+ * Written by Simon Glass <sjg@chromium.org>
+ *
+ * SPDX-License-Identifier:     GPL-2.0+
+ */
+
+#ifndef __API_H
+#define __API_H
+
+void api_init(void);
+
+#endif
index 8b64407..fb4e79b 100644 (file)
@@ -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);