From fdce60787f6215607dc7ac910cbaf4416684b589 Mon Sep 17 00:00:00 2001
From: Philipp Zabel
Date: Thu, 13 Dec 2018 12:22:32 +0100
Subject: reset: sunxi: declare sun6i_reset_init in a header file
Avoid declaring extern functions in c files. To make sure function
definition and usage don't get out of sync, declare sun6i_reset_init
in a common header.
Suggested-by: Stephen Rothwell
Signed-off-by: Philipp Zabel
---
arch/arm/mach-sunxi/sunxi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'arch/arm/mach-sunxi')
diff --git a/arch/arm/mach-sunxi/sunxi.c b/arch/arm/mach-sunxi/sunxi.c
index 8a7f301839c2..933b6930f024 100644
--- a/arch/arm/mach-sunxi/sunxi.c
+++ b/arch/arm/mach-sunxi/sunxi.c
@@ -14,6 +14,7 @@
#include
#include
#include
+#include
#include
#include
@@ -37,7 +38,6 @@ static const char * const sun6i_board_dt_compat[] = {
NULL,
};
-extern void __init sun6i_reset_init(void);
static void __init sun6i_timer_init(void)
{
of_clk_init(NULL);
--
cgit v1.2.3-58-ga151