Commit ed276849 authored by Kukjin Kim's avatar Kukjin Kim Committed by Ben Dooks

ARM: SAMSUNG: Make clk_default_setrate and clk_ops_def_setrate visible

This patch makes clk_default_setrate and clk_ops_def_setrate available
to code outside plat-samsung clock code.
Signed-off-by: default avatarThomas Abraham <thomas.ab@samsung.com>
Signed-off-by: default avatarKukjin Kim <kgene.kim@samsung.com>
Signed-off-by: default avatarBen Dooks <ben-linux@fluff.org>
parent 14235696
...@@ -64,16 +64,6 @@ struct clk clk_54m = { ...@@ -64,16 +64,6 @@ struct clk clk_54m = {
.rate = 54000000, .rate = 54000000,
}; };
static int clk_default_setrate(struct clk *clk, unsigned long rate)
{
clk->rate = rate;
return 0;
}
static struct clk_ops clk_ops_default_setrate = {
.set_rate = clk_default_setrate,
};
static int clk_dummy_enable(struct clk *clk, int enable) static int clk_dummy_enable(struct clk *clk, int enable)
{ {
return 0; return 0;
...@@ -86,7 +76,7 @@ struct clk clk_hd0 = { ...@@ -86,7 +76,7 @@ struct clk clk_hd0 = {
.parent = NULL, .parent = NULL,
.ctrlbit = 0, .ctrlbit = 0,
.enable = clk_dummy_enable, .enable = clk_dummy_enable,
.ops = &clk_ops_default_setrate, .ops = &clk_ops_def_setrate,
}; };
struct clk clk_pd0 = { struct clk clk_pd0 = {
...@@ -95,7 +85,7 @@ struct clk clk_pd0 = { ...@@ -95,7 +85,7 @@ struct clk clk_pd0 = {
.rate = 0, .rate = 0,
.parent = NULL, .parent = NULL,
.ctrlbit = 0, .ctrlbit = 0,
.ops = &clk_ops_default_setrate, .ops = &clk_ops_def_setrate,
.enable = clk_dummy_enable, .enable = clk_dummy_enable,
}; };
......
...@@ -225,13 +225,13 @@ EXPORT_SYMBOL(clk_set_parent); ...@@ -225,13 +225,13 @@ EXPORT_SYMBOL(clk_set_parent);
/* base clocks */ /* base clocks */
static int clk_default_setrate(struct clk *clk, unsigned long rate) int clk_default_setrate(struct clk *clk, unsigned long rate)
{ {
clk->rate = rate; clk->rate = rate;
return 0; return 0;
} }
static struct clk_ops clk_ops_def_setrate = { struct clk_ops clk_ops_def_setrate = {
.set_rate = clk_default_setrate, .set_rate = clk_default_setrate,
}; };
......
...@@ -75,6 +75,9 @@ extern struct clk clk_h2; ...@@ -75,6 +75,9 @@ extern struct clk clk_h2;
extern struct clk clk_27m; extern struct clk clk_27m;
extern struct clk clk_48m; extern struct clk clk_48m;
extern int clk_default_setrate(struct clk *clk, unsigned long rate);
extern struct clk_ops clk_ops_def_setrate;
/* exports for arch/arm/mach-s3c2410 /* exports for arch/arm/mach-s3c2410
* *
* Please DO NOT use these outside of arch/arm/mach-s3c2410 * Please DO NOT use these outside of arch/arm/mach-s3c2410
......
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