summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-sunxi
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2018-12-13 12:22:32 +0100
committerPhilipp Zabel <p.zabel@pengutronix.de>2019-01-28 11:16:04 +0100
commitfdce60787f6215607dc7ac910cbaf4416684b589 (patch)
tree9fc24099a280cb720baedc7ca91e639ef4dd7e76 /arch/arm/mach-sunxi
parent37c7393962441a968428dd0d0b11dfb50917f4c3 (diff)
downloadlinux-stable-fdce60787f6215607dc7ac910cbaf4416684b589.tar.gz
linux-stable-fdce60787f6215607dc7ac910cbaf4416684b589.tar.bz2
linux-stable-fdce60787f6215607dc7ac910cbaf4416684b589.zip
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 <sfr@canb.auug.org.au> Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-sunxi')
-rw-r--r--arch/arm/mach-sunxi/sunxi.c2
1 files changed, 1 insertions, 1 deletions
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 <linux/clocksource.h>
#include <linux/init.h>
#include <linux/platform_device.h>
+#include <linux/reset/sunxi.h>
#include <asm/mach/arch.h>
#include <asm/secure_cntvoff.h>
@@ -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);