summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-uniphier/include/mach
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2015-09-22 00:27:30 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2015-09-25 00:27:53 +0900
commit0b198670c6525392337462282efeaefe459e14cd (patch)
treed14dd5fd12d3ecfcb75dd9036e1f6f8ef46cbacd /arch/arm/mach-uniphier/include/mach
parentf1378cabc0d340393bc7e0312f5e1f70d5d19434 (diff)
downloadtalos-obmc-uboot-0b198670c6525392337462282efeaefe459e14cd.tar.gz
talos-obmc-uboot-0b198670c6525392337462282efeaefe459e14cd.zip
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: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'arch/arm/mach-uniphier/include/mach')
-rw-r--r--arch/arm/mach-uniphier/include/mach/board.h18
1 files changed, 6 insertions, 12 deletions
diff --git a/arch/arm/mach-uniphier/include/mach/board.h b/arch/arm/mach-uniphier/include/mach/board.h
index c039d807f4..5b9af222ae 100644
--- a/arch/arm/mach-uniphier/include/mach/board.h
+++ b/arch/arm/mach-uniphier/include/mach/board.h
@@ -13,28 +13,22 @@ void support_card_init(void);
void support_card_late_init(void);
int check_support_card(void);
#else
-#define support_card_reset() do {} while (0)
-#define support_card_init() do {} while (0)
-#define support_card_late_init() do {} while (0)
-static inline int check_support_card(void)
+static inline void support_card_reset(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 */
OpenPOWER on IntegriCloud