Skip to content

Commit

Permalink
ARM: EXYNOS: use static declaration on regarding clock
Browse files Browse the repository at this point in the history
This patch uses static declaration struct which is not
used in other file and re-arrange with group in header
file.

Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
  • Loading branch information
Kukjin Kim committed Mar 11, 2012
1 parent ce9c00e commit b1d6c5b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 21 deletions.
18 changes: 9 additions & 9 deletions arch/arm/mach-exynos/clock-exynos4.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,21 +95,21 @@ static struct sleep_save exynos4_clock_save[] = {
};
#endif

struct clk clk_sclk_hdmi27m = {
static struct clk clk_sclk_hdmi27m = {
.name = "sclk_hdmi27m",
.rate = 27000000,
};

struct clk clk_sclk_hdmiphy = {
static struct clk clk_sclk_hdmiphy = {
.name = "sclk_hdmiphy",
};

struct clk clk_sclk_usbphy0 = {
static struct clk clk_sclk_usbphy0 = {
.name = "sclk_usbphy0",
.rate = 27000000,
};

struct clk clk_sclk_usbphy1 = {
static struct clk clk_sclk_usbphy1 = {
.name = "sclk_usbphy1",
};

Expand Down Expand Up @@ -218,15 +218,15 @@ static struct clksrc_clk clk_mout_apll = {
.reg_src = { .reg = S5P_CLKSRC_CPU, .shift = 0, .size = 1 },
};

struct clksrc_clk clk_sclk_apll = {
static struct clksrc_clk clk_sclk_apll = {
.clk = {
.name = "sclk_apll",
.parent = &clk_mout_apll.clk,
},
.reg_div = { .reg = S5P_CLKDIV_CPU, .shift = 24, .size = 3 },
};

struct clksrc_clk clk_mout_epll = {
static struct clksrc_clk clk_mout_epll = {
.clk = {
.name = "mout_epll",
},
Expand Down Expand Up @@ -310,7 +310,7 @@ static struct clksrc_clk clk_periphclk = {

/* Core list of CMU_CORE side */

struct clk *clkset_corebus_list[] = {
static struct clk *clkset_corebus_list[] = {
[0] = &clk_mout_mpll.clk,
[1] = &clk_sclk_apll.clk,
};
Expand Down Expand Up @@ -375,7 +375,7 @@ struct clk *clkset_aclk_top_list[] = {
[1] = &clk_sclk_apll.clk,
};

struct clksrc_sources clkset_aclk = {
static struct clksrc_sources clkset_aclk = {
.sources = clkset_aclk_top_list,
.nr_sources = ARRAY_SIZE(clkset_aclk_top_list),
};
Expand Down Expand Up @@ -446,7 +446,7 @@ static struct clksrc_sources clkset_sclk_vpll = {
.nr_sources = ARRAY_SIZE(clkset_sclk_vpll_list),
};

struct clksrc_clk clk_sclk_vpll = {
static struct clksrc_clk clk_sclk_vpll = {
.clk = {
.name = "sclk_vpll",
},
Expand Down
13 changes: 1 addition & 12 deletions arch/arm/mach-exynos/clock-exynos4.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,14 @@

#include <linux/clk.h>

extern struct clk clk_sclk_hdmi27m;
extern struct clk clk_sclk_usbphy0;
extern struct clk clk_sclk_usbphy1;
extern struct clk clk_sclk_hdmiphy;

extern struct clksrc_clk clk_sclk_apll;
extern struct clksrc_clk clk_mout_mpll;
extern struct clksrc_clk clk_aclk_133;
extern struct clksrc_clk clk_mout_epll;
extern struct clksrc_clk clk_sclk_vpll;

extern struct clk *clkset_corebus_list[];
extern struct clksrc_sources clkset_mout_corebus;
extern struct clksrc_sources clkset_group;

extern struct clk *clkset_aclk_top_list[];
extern struct clksrc_sources clkset_aclk;

extern struct clk *clkset_group_list[];
extern struct clksrc_sources clkset_group;

extern int exynos4_clksrc_mask_fsys_ctrl(struct clk *clk, int enable);
extern int exynos4_clk_ip_fsys_ctrl(struct clk *clk, int enable);
Expand Down

0 comments on commit b1d6c5b

Please sign in to comment.