提交 cc664000 编写于 作者: S Simon Glass 提交者: Tom Rini

Drop the static inline print_cpuinfo()

This is only called from one place and the function cannot be inlined.
Convert it to a normal function.
Signed-off-by: NSimon Glass <sjg@chromium.org>
上级 37b499c4
...@@ -916,7 +916,9 @@ static init_fnc_t init_sequence_f[] = { ...@@ -916,7 +916,9 @@ static init_fnc_t init_sequence_f[] = {
#if defined(CONFIG_PPC) || defined(CONFIG_M68K) || defined(CONFIG_SH) #if defined(CONFIG_PPC) || defined(CONFIG_M68K) || defined(CONFIG_SH)
checkcpu, checkcpu,
#endif #endif
#if defined(CONFIG_DISPLAY_CPUINFO)
print_cpuinfo, /* display cpu info (and speed) */ print_cpuinfo, /* display cpu info (and speed) */
#endif
#if defined(CONFIG_MPC5xxx) #if defined(CONFIG_MPC5xxx)
prt_mpc5xxx_clks, prt_mpc5xxx_clks,
#endif /* CONFIG_MPC5xxx */ #endif /* CONFIG_MPC5xxx */
......
...@@ -284,14 +284,7 @@ int mac_read_from_eeprom(void); ...@@ -284,14 +284,7 @@ int mac_read_from_eeprom(void);
extern u8 __dtb_dt_begin[]; /* embedded device tree blob */ extern u8 __dtb_dt_begin[]; /* embedded device tree blob */
int set_cpu_clk_info(void); int set_cpu_clk_info(void);
int mdm_init(void); int mdm_init(void);
#if defined(CONFIG_DISPLAY_CPUINFO)
int print_cpuinfo(void); int print_cpuinfo(void);
#else
static inline int print_cpuinfo(void)
{
return 0;
}
#endif
int update_flash_size(int flash_size); int update_flash_size(int flash_size);
int arch_early_init_r(void); int arch_early_init_r(void);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册