From 277ed7a2df8a53288cf08b61a7d44e916021fd49 Mon Sep 17 00:00:00 2001 From: Zhao Qiang Date: Wed, 6 Aug 2014 15:44:05 +0800 Subject: qe-tdm: move siram_init_flag to qe.c Signed-off-by: Zhao Qiang Change-Id: Id21f861ffec995ad68378a9d2eda245ef989b489 Reviewed-on: http://git.am.freescale.net:8181/19009 Tested-by: Review Code-CDREVIEW Reviewed-by: Xiaobo Xie Reviewed-by: Richard Schmitt diff --git a/arch/powerpc/include/asm/qe.h b/arch/powerpc/include/asm/qe.h index f06c7b3..a7387c2 100644 --- a/arch/powerpc/include/asm/qe.h +++ b/arch/powerpc/include/asm/qe.h @@ -32,6 +32,8 @@ #define MEM_PART_SECONDARY 1 #define MEM_PART_MURAM 2 +extern int siram_init_flag; + /* Clocks and BRGs */ enum qe_clock { QE_CLK_NONE = 0, diff --git a/arch/powerpc/sysdev/qe_lib/qe.c b/arch/powerpc/sysdev/qe_lib/qe.c index d5d7f0f..ad324ba 100644 --- a/arch/powerpc/sysdev/qe_lib/qe.c +++ b/arch/powerpc/sysdev/qe_lib/qe.c @@ -41,6 +41,8 @@ static void qe_snums_init(void); static int qe_sdma_init(void); +int siram_init_flag; + static DEFINE_SPINLOCK(qe_lock); DEFINE_SPINLOCK(cmxgcr_lock); EXPORT_SYMBOL(cmxgcr_lock); diff --git a/drivers/net/wan/fsl_ucc_hdlc.c b/drivers/net/wan/fsl_ucc_hdlc.c index 8471dfa..e5c0db9 100644 --- a/drivers/net/wan/fsl_ucc_hdlc.c +++ b/drivers/net/wan/fsl_ucc_hdlc.c @@ -76,7 +76,6 @@ static struct ucc_hdlc_info uhdlc_primary_info = { }; static struct ucc_hdlc_info uhdlc_info[MAX_HDLC_NUM]; -static int siram_init_flag; #ifdef DEBUG diff --git a/drivers/tdm/device/fsl_ucc_tdm.c b/drivers/tdm/device/fsl_ucc_tdm.c index c383ec4..ad25c0a 100644 --- a/drivers/tdm/device/fsl_ucc_tdm.c +++ b/drivers/tdm/device/fsl_ucc_tdm.c @@ -85,7 +85,6 @@ static struct ucc_tdm_info utdm_primary_info = { }; static struct ucc_tdm_info utdm_info[MAX_TDM_NUM]; -static int siram_init_flag; #ifdef DEBUG static void dump_siram(struct ucc_tdm_private *priv) -- cgit v0.10.2