diff options
author | Anson Huang <b20788@freescale.com> | 2012-09-05 13:47:43 +0800 |
---|---|---|
committer | Anson Huang <b20788@freescale.com> | 2012-09-05 14:05:27 +0800 |
commit | b675f7bfd7b21ab27f2a6ae5e7b0dab010386d3e (patch) | |
tree | d08db150fee4c80ccb32340af24f44c68ba53abf /arch/arm/mach-mx6/clock_mx6sl.c | |
parent | e47c86ee3434b6d2e7a565115f5476ca6e29d1a4 (diff) |
ENGR00223058 [MX6]Fix build warning
Fix below build warning:
arch/arm/mach-mx6/irq.c: In function 'mx6_init_irq':
arch/arm/mach-mx6/irq.c:106: warning: unused variable 'reg'
arch/arm/mach-mx6/clock_mx6sl.c:1807:
warning: function declaration isn't a prototype
arch/arm/mach-mx6/clock_mx6sl.c:1535:
warning: 'tzasc1_clk' defined but not used
arch/arm/mach-mx6/clock_mx6sl.c:1576:
warning: 'mx6per2_clk' defined but not used
arch/arm/mach-mx6/clock_mx6sl.c:1708:
warning: 'ocram_clk' defined but not used
Signed-off-by: Anson Huang <b20788@freescale.com>
Diffstat (limited to 'arch/arm/mach-mx6/clock_mx6sl.c')
-rwxr-xr-x | arch/arm/mach-mx6/clock_mx6sl.c | 26 |
1 files changed, 3 insertions, 23 deletions
diff --git a/arch/arm/mach-mx6/clock_mx6sl.c b/arch/arm/mach-mx6/clock_mx6sl.c index 08212c3c3ecb..616099180008 100755 --- a/arch/arm/mach-mx6/clock_mx6sl.c +++ b/arch/arm/mach-mx6/clock_mx6sl.c @@ -1532,16 +1532,6 @@ static struct clk ipg_clk = { .get_rate = _clk_ipg_get_rate, }; -static struct clk tzasc1_clk = { - __INIT_CLK_DEBUG(tzasc1_clk) - .id = 0, - .parent = &ipg_clk, - .enable_reg = MXC_CCM_CCGR2, - .enable_shift = MXC_CCM_CCGRx_CG11_OFFSET, - .enable = _clk_enable, - .disable = _clk_disable_inwait, -}; - static struct clk tzasc2_clk = { __INIT_CLK_DEBUG(tzasc2_clk) .id = 0, @@ -1573,16 +1563,6 @@ static struct clk mx6per1_clk = { .disable = _clk_disable_inwait, }; -static struct clk mx6per2_clk = { - __INIT_CLK_DEBUG(mx6per2_clk) - .id = 0, - .parent = &ahb_clk, - .enable_reg = MXC_CCM_CCGR4, - .enable_shift = MXC_CCM_CCGRx_CG7_OFFSET, - .enable = _clk_enable, - .disable = _clk_disable_inwait, -}; - static int _clk_mmdc_ch1_axi_set_parent(struct clk *clk, struct clk *parent) { @@ -1704,7 +1684,7 @@ static struct clk mmdc_ch1_axi_clk[] = { .secondary = &tzasc2_clk, }, }; - +#if defined(CONFIG_SDMA_IRAM) || defined(CONFIG_SND_MXC_SOC_IRAM) static struct clk ocram_clk = { __INIT_CLK_DEBUG(ocram_clk) .id = 0, @@ -1714,7 +1694,7 @@ static struct clk ocram_clk = { .enable = _clk_enable, .disable = _clk_disable_inwait, }; - +#endif static unsigned long _clk_ipg_perclk_get_rate(struct clk *clk) { u32 reg, div; @@ -1803,7 +1783,7 @@ static struct clk sdma_clk[] = { }, }; -static unsigned long mx6_timer_rate() +static unsigned long mx6_timer_rate(void) { u32 parent_rate = clk_get_rate(&osc_clk); |