Patchwork [3/3] ARM: mxs: ocotp: Fix sparse warning

login
register
mail settings
Submitter Fabio Estevam
Date Feb. 11, 2013, 2:01 p.m.
Message ID <1360591308-7482-3-git-send-email-festevam@gmail.com>
Download mbox | patch
Permalink /patch/219610/
State New
Headers show

Comments

Fabio Estevam - Feb. 11, 2013, 2:01 p.m.
From: Fabio Estevam <fabio.estevam@freescale.com>

Include <mach/common.h> header to fix the following sparse warning:

arch/arm/mach-mxs/ocotp.c:33:11: warning: symbol 'mxs_get_ocotp' was not declared. Should it be static?

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 arch/arm/mach-mxs/ocotp.c |    1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/arch/arm/mach-mxs/ocotp.c b/arch/arm/mach-mxs/ocotp.c
index 54add60..1dff467 100644
--- a/arch/arm/mach-mxs/ocotp.c
+++ b/arch/arm/mach-mxs/ocotp.c
@@ -19,6 +19,7 @@ 
 #include <asm/processor.h>	/* for cpu_relax() */
 
 #include <mach/mxs.h>
+#include <mach/common.h>
 
 #define OCOTP_WORD_OFFSET		0x20
 #define OCOTP_WORD_COUNT		0x20