]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
ARM: SAMSUNG: Make clk_default_setrate and clk_ops_def_setrate visible
authorKukjin Kim <kgene.kim@samsung.com>
Thu, 14 Jan 2010 03:50:23 +0000 (12:50 +0900)
committerBen Dooks <ben-linux@fluff.org>
Fri, 15 Jan 2010 08:10:12 +0000 (17:10 +0900)
This patch makes clk_default_setrate and clk_ops_def_setrate available
to code outside plat-samsung clock code.

Signed-off-by: Thomas Abraham <thomas.ab@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
arch/arm/plat-s5pc1xx/clock.c
arch/arm/plat-samsung/clock.c
arch/arm/plat-samsung/include/plat/clock.h

index 0aff16d1cc2c683c610f20cc9ba08a70c243a49a..aec0305174aa18a490200ba25f39a29b7a230f02 100644 (file)
@@ -64,16 +64,6 @@ struct clk clk_54m = {
        .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;
@@ -86,7 +76,7 @@ struct clk clk_hd0 = {
        .parent         = NULL,
        .ctrlbit        = 0,
        .enable         = clk_dummy_enable,
-       .ops            = &clk_ops_default_setrate,
+       .ops            = &clk_ops_def_setrate,
 };
 
 struct clk clk_pd0 = {
@@ -95,7 +85,7 @@ struct clk clk_pd0 = {
        .rate           = 0,
        .parent         = NULL,
        .ctrlbit        = 0,
-       .ops            = &clk_ops_default_setrate,
+       .ops            = &clk_ops_def_setrate,
        .enable         = clk_dummy_enable,
 };
 
index 9194af91e4b7a92659328b58870bd0e4ca77e8d0..0c746ae7b2a6345a8b1974cabdcf74a2ef9f4ffc 100644 (file)
@@ -225,13 +225,13 @@ EXPORT_SYMBOL(clk_set_parent);
 
 /* 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,
 };
 
index bd41f828d15d0871151079915c73ad0bf8e73578..22e011497502c09f4f953e420f7b35867f6d42c5 100644 (file)
@@ -75,6 +75,9 @@ extern struct clk clk_h2;
 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