提交 0b198670 编写于 作者: M Masahiro Yamada

ARM: uniphier: remove useless wrapper functions

The wrapper functions, uniphier_board_*, are just making function
calls complex.  Remove them.

Also, use empty inline functions in case CONFIG_MICRO_SUPPORT_CARD
is disabled, so that prototype checking works.
Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
上级 f1378cab
/* /*
* Copyright (C) 2014 Panasonic Corporation * Copyright (C) 2014-2015 Masahiro Yamada <yamada.masahiro@socionext.com>
* Author: Masahiro Yamada <yamada.m@jp.panasonic.com>
* *
* SPDX-License-Identifier: GPL-2.0+ * SPDX-License-Identifier: GPL-2.0+
*/ */
...@@ -10,6 +9,6 @@ ...@@ -10,6 +9,6 @@
int board_early_init_r(void) int board_early_init_r(void)
{ {
uniphier_board_late_init(); support_card_late_init();
return 0; return 0;
} }
...@@ -13,28 +13,22 @@ void support_card_init(void); ...@@ -13,28 +13,22 @@ void support_card_init(void);
void support_card_late_init(void); void support_card_late_init(void);
int check_support_card(void); int check_support_card(void);
#else #else
#define support_card_reset() do {} while (0) static inline void support_card_reset(void)
#define support_card_init() do {} while (0)
#define support_card_late_init() do {} while (0)
static inline int check_support_card(void)
{ {
return 0;
} }
#endif
static inline void uniphier_board_reset(void) static inline void support_card_init(void)
{ {
support_card_reset();
} }
static inline void uniphier_board_init(void) static inline void support_card_late_init(void)
{ {
support_card_init();
} }
static inline void uniphier_board_late_init(void) static inline int check_support_card(void)
{ {
support_card_late_init(); return 0;
} }
#endif
#endif /* ARCH_BOARD_H */ #endif /* ARCH_BOARD_H */
...@@ -40,11 +40,11 @@ void spl_board_init(void) ...@@ -40,11 +40,11 @@ void spl_board_init(void)
sg_init(); sg_init();
uniphier_board_reset(); support_card_reset();
pll_init(); pll_init();
uniphier_board_init(); support_card_init();
led_write(L, 0, , ); led_write(L, 0, , );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册