summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/common/include
diff options
context:
space:
mode:
authorJianjun Wang <jianjun.wang@mediatek.com>2022-03-30 09:09:43 +0800
committerHung-Te Lin <hungte@chromium.org>2022-03-31 01:50:42 +0000
commit79b35ca4812ab839ff12bfd7036ea90ea8f24f59 (patch)
treedb136ccdab32811c9d85061df51cffb09b33901b /src/soc/mediatek/common/include
parente1e30b150474f62717792f9f7ccc5785461a04d0 (diff)
soc/mediatek/early_init: Fix function return type
Fix return type of early_init_get_elapsed_time_us() to comply with the data type of return value. Also replace memset() with struct initializer. Signed-off-by: Jianjun Wang <jianjun.wang@mediatek.com> Fixes: commit 41faa22 (soc/mediatek: Add early_init for passing data across stages) Change-Id: I7c361828362c2dfec91358ad8a420f5360243da0 Reviewed-on: https://review.coreboot.org/c/coreboot/+/63190 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/soc/mediatek/common/include')
-rw-r--r--src/soc/mediatek/common/include/soc/early_init.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/mediatek/common/include/soc/early_init.h b/src/soc/mediatek/common/include/soc/early_init.h
index 2811b0d69a..533dffd023 100644
--- a/src/soc/mediatek/common/include/soc/early_init.h
+++ b/src/soc/mediatek/common/include/soc/early_init.h
@@ -21,6 +21,6 @@ struct early_init_data {
void early_init_clear(void);
void early_init_save_time(enum early_init_type init_type);
-uint64_t early_init_get_elapsed_time_us(enum early_init_type init_type);
+long early_init_get_elapsed_time_us(enum early_init_type init_type);
#endif /* SOC_MEDIATEK_EARLY_INIT_H */