Commit 15545026 authored by Kukjin Kim's avatar Kukjin Kim

ARM: S5P64X0: use static declaration when it is not used in other files

Signed-off-by: default avatarKukjin Kim <kgene.kim@samsung.com>
parent 5086c6c8
...@@ -73,7 +73,7 @@ static const u32 clock_table[][3] = { ...@@ -73,7 +73,7 @@ static const u32 clock_table[][3] = {
{L2 * 1000, (3 << ARM_DIV_RATIO_SHIFT), (0 << S5P64X0_CLKDIV0_HCLK_SHIFT)}, {L2 * 1000, (3 << ARM_DIV_RATIO_SHIFT), (0 << S5P64X0_CLKDIV0_HCLK_SHIFT)},
}; };
unsigned long s5p64x0_armclk_get_rate(struct clk *clk) static unsigned long s5p64x0_armclk_get_rate(struct clk *clk)
{ {
unsigned long rate = clk_get_rate(clk->parent); unsigned long rate = clk_get_rate(clk->parent);
u32 clkdiv; u32 clkdiv;
...@@ -84,7 +84,8 @@ unsigned long s5p64x0_armclk_get_rate(struct clk *clk) ...@@ -84,7 +84,8 @@ unsigned long s5p64x0_armclk_get_rate(struct clk *clk)
return rate / (clkdiv + 1); return rate / (clkdiv + 1);
} }
unsigned long s5p64x0_armclk_round_rate(struct clk *clk, unsigned long rate) static unsigned long s5p64x0_armclk_round_rate(struct clk *clk,
unsigned long rate)
{ {
u32 iter; u32 iter;
...@@ -96,7 +97,7 @@ unsigned long s5p64x0_armclk_round_rate(struct clk *clk, unsigned long rate) ...@@ -96,7 +97,7 @@ unsigned long s5p64x0_armclk_round_rate(struct clk *clk, unsigned long rate)
return clock_table[ARRAY_SIZE(clock_table) - 1][0]; return clock_table[ARRAY_SIZE(clock_table) - 1][0];
} }
int s5p64x0_armclk_set_rate(struct clk *clk, unsigned long rate) static int s5p64x0_armclk_set_rate(struct clk *clk, unsigned long rate)
{ {
u32 round_tmp; u32 round_tmp;
u32 iter; u32 iter;
...@@ -148,7 +149,7 @@ int s5p64x0_armclk_set_rate(struct clk *clk, unsigned long rate) ...@@ -148,7 +149,7 @@ int s5p64x0_armclk_set_rate(struct clk *clk, unsigned long rate)
return 0; return 0;
} }
struct clk_ops s5p64x0_clkarm_ops = { static struct clk_ops s5p64x0_clkarm_ops = {
.get_rate = s5p64x0_armclk_get_rate, .get_rate = s5p64x0_armclk_get_rate,
.set_rate = s5p64x0_armclk_set_rate, .set_rate = s5p64x0_armclk_set_rate,
.round_rate = s5p64x0_armclk_round_rate, .round_rate = s5p64x0_armclk_round_rate,
...@@ -173,7 +174,7 @@ struct clksrc_clk clk_dout_mpll = { ...@@ -173,7 +174,7 @@ struct clksrc_clk clk_dout_mpll = {
.reg_div = { .reg = S5P64X0_CLK_DIV0, .shift = 4, .size = 1 }, .reg_div = { .reg = S5P64X0_CLK_DIV0, .shift = 4, .size = 1 },
}; };
struct clk *clkset_hclk_low_list[] = { static struct clk *clkset_hclk_low_list[] = {
&clk_mout_apll.clk, &clk_mout_apll.clk,
&clk_mout_mpll.clk, &clk_mout_mpll.clk,
}; };
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
static u64 dma_dmamask = DMA_BIT_MASK(32); static u64 dma_dmamask = DMA_BIT_MASK(32);
u8 s5p6440_pdma_peri[] = { static u8 s5p6440_pdma_peri[] = {
DMACH_UART0_RX, DMACH_UART0_RX,
DMACH_UART0_TX, DMACH_UART0_TX,
DMACH_UART1_RX, DMACH_UART1_RX,
...@@ -63,12 +63,12 @@ u8 s5p6440_pdma_peri[] = { ...@@ -63,12 +63,12 @@ u8 s5p6440_pdma_peri[] = {
DMACH_SPI1_RX, DMACH_SPI1_RX,
}; };
struct dma_pl330_platdata s5p6440_pdma_pdata = { static struct dma_pl330_platdata s5p6440_pdma_pdata = {
.nr_valid_peri = ARRAY_SIZE(s5p6440_pdma_peri), .nr_valid_peri = ARRAY_SIZE(s5p6440_pdma_peri),
.peri_id = s5p6440_pdma_peri, .peri_id = s5p6440_pdma_peri,
}; };
u8 s5p6450_pdma_peri[] = { static u8 s5p6450_pdma_peri[] = {
DMACH_UART0_RX, DMACH_UART0_RX,
DMACH_UART0_TX, DMACH_UART0_TX,
DMACH_UART1_RX, DMACH_UART1_RX,
...@@ -103,12 +103,12 @@ u8 s5p6450_pdma_peri[] = { ...@@ -103,12 +103,12 @@ u8 s5p6450_pdma_peri[] = {
DMACH_UART5_TX, DMACH_UART5_TX,
}; };
struct dma_pl330_platdata s5p6450_pdma_pdata = { static struct dma_pl330_platdata s5p6450_pdma_pdata = {
.nr_valid_peri = ARRAY_SIZE(s5p6450_pdma_peri), .nr_valid_peri = ARRAY_SIZE(s5p6450_pdma_peri),
.peri_id = s5p6450_pdma_peri, .peri_id = s5p6450_pdma_peri,
}; };
struct amba_device s5p64x0_device_pdma = { static struct amba_device s5p64x0_device_pdma = {
.dev = { .dev = {
.init_name = "dma-pl330", .init_name = "dma-pl330",
.dma_mask = &dma_dmamask, .dma_mask = &dma_dmamask,
......
...@@ -22,16 +22,9 @@ extern struct clksrc_clk clk_mout_epll; ...@@ -22,16 +22,9 @@ extern struct clksrc_clk clk_mout_epll;
extern int s5p64x0_epll_enable(struct clk *clk, int enable); extern int s5p64x0_epll_enable(struct clk *clk, int enable);
extern unsigned long s5p64x0_epll_get_rate(struct clk *clk); extern unsigned long s5p64x0_epll_get_rate(struct clk *clk);
extern unsigned long s5p64x0_armclk_get_rate(struct clk *clk);
extern unsigned long s5p64x0_armclk_round_rate(struct clk *clk, unsigned long rate);
extern int s5p64x0_armclk_set_rate(struct clk *clk, unsigned long rate);
extern struct clk_ops s5p64x0_clkarm_ops;
extern struct clksrc_clk clk_armclk; extern struct clksrc_clk clk_armclk;
extern struct clksrc_clk clk_dout_mpll; extern struct clksrc_clk clk_dout_mpll;
extern struct clk *clkset_hclk_low_list[];
extern struct clksrc_sources clkset_hclk_low; extern struct clksrc_sources clkset_hclk_low;
extern int s5p64x0_pclk_ctrl(struct clk *clk, int enable); extern int s5p64x0_pclk_ctrl(struct clk *clk, int enable);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment