
From: Simon Glass <sjg@chromium.org> Complete the rename of this API so that it is clear it is considered deprecated. Signed-off-by: Simon Glass <sjg@chromium.org> --- include/legacy_api.h | 6 ++++-- legacy_api/api.c | 2 +- legacy_api/api_private.h | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/include/legacy_api.h b/include/legacy_api.h index 85bd80b2e33..6ada4000715 100644 --- a/include/legacy_api.h +++ b/include/legacy_api.h @@ -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 diff --git a/legacy_api/api.c b/legacy_api/api.c index 458eaf0c5a4..a3d3a8eccae 100644 --- a/legacy_api/api.c +++ b/legacy_api/api.c @@ -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; diff --git a/legacy_api/api_private.h b/legacy_api/api_private.h index bb23821c2c0..1871ba4f431 100644 --- a/legacy_api/api_private.h +++ b/legacy_api/api_private.h @@ -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 *); -- 2.43.0