.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)
{
return 0;
.parent = NULL,
.ctrlbit = 0,
.enable = clk_dummy_enable,
- .ops = &clk_ops_default_setrate,
+ .ops = &clk_ops_def_setrate,
};
struct clk clk_pd0 = {
.rate = 0,
.parent = NULL,
.ctrlbit = 0,
- .ops = &clk_ops_default_setrate,
+ .ops = &clk_ops_def_setrate,
.enable = clk_dummy_enable,
};
/* 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;
return 0;
}
-static struct clk_ops clk_ops_def_setrate = {
+struct clk_ops clk_ops_def_setrate = {
.set_rate = clk_default_setrate,
};
extern struct clk clk_27m;
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
*
* Please DO NOT use these outside of arch/arm/mach-s3c2410