diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2019-03-15 08:03:10 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-03-18 10:10:40 +0100 |
commit | 38010c5db862efbc23aedb83a03a0b55d0eb0326 (patch) | |
tree | 1ae99e084f36e531e8715e947b5a3979ab4e3d39 /arch | |
parent | ff5ad81faccbb265c9bb3ab4b2fd4a461fe52417 (diff) | |
download | barebox-38010c5db862efbc23aedb83a03a0b55d0eb0326.tar.gz barebox-38010c5db862efbc23aedb83a03a0b55d0eb0326.tar.xz |
ARM: PXA: Provide prototype for pxa_clear_reset_source()
Move pxa_clear_reset_source() declaration to a header file where the
file implementing it can see it.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-pxa/common.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-pxa/include/mach/hardware.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/mach-pxa/common.c b/arch/arm/mach-pxa/common.c index c0281d69ef..f2648f4687 100644 --- a/arch/arm/mach-pxa/common.c +++ b/arch/arm/mach-pxa/common.c @@ -29,8 +29,6 @@ #define OWER_WME (1 << 0) /* Watch-dog Match Enable */ #define OSSR_M3 (1 << 3) /* Match status channel 3 */ -extern void pxa_clear_reset_source(void); - static void __noreturn pxa_restart_soc(struct restart_handler *rst) { /* Clear last reset source */ diff --git a/arch/arm/mach-pxa/include/mach/hardware.h b/arch/arm/mach-pxa/include/mach/hardware.h index 902d11ddfc..d968a11880 100644 --- a/arch/arm/mach-pxa/include/mach/hardware.h +++ b/arch/arm/mach-pxa/include/mach/hardware.h @@ -46,6 +46,10 @@ #ifdef __ASSEMBLY__ #define __REG(x) (x) +#else + +void pxa_clear_reset_source(void); + #endif #endif /* !__MACH_HARDWARE_H */ |