api: Rename api_init() to legacy_api_init()
Complete the rename of this API so that it is clear it is considered deprecated. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -8,13 +8,15 @@
|
||||
#define __LEGACY_API_H
|
||||
|
||||
/**
|
||||
* api_init() - Initialize API for external applications
|
||||
* legacy_api_init() - Initialize legacy API for external applications
|
||||
*
|
||||
* Initialize API for external (standalone) applications running on top of
|
||||
* U-Boot. It is called during the generic post-relocation init sequence.
|
||||
*
|
||||
* Note that this is deprecated.
|
||||
*
|
||||
* Return: 0 if OK
|
||||
*/
|
||||
int api_init(void);
|
||||
int legacy_api_init(void);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -638,7 +638,7 @@ int syscall(int call, int *retval, ...)
|
||||
return 1;
|
||||
}
|
||||
|
||||
int api_init(void)
|
||||
int legacy_api_init(void)
|
||||
{
|
||||
struct api_signature *sig;
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#ifndef _API_PRIVATE_H_
|
||||
#define _API_PRIVATE_H_
|
||||
|
||||
int api_init(void);
|
||||
int legacy_api_init(void);
|
||||
void platform_set_mr(struct sys_info *, unsigned long, unsigned long, int);
|
||||
int platform_sys_info(struct sys_info *);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user