aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/plat-omap/clock.c13
-rw-r--r--arch/arm/plat-omap/include/mach/clock.h1
2 files changed, 1 insertions, 13 deletions
diff --git a/arch/arm/plat-omap/clock.c b/arch/arm/plat-omap/clock.c
index 7b0400728594..ae77e10719f2 100644
--- a/arch/arm/plat-omap/clock.c
+++ b/arch/arm/plat-omap/clock.c
@@ -207,18 +207,7 @@ EXPORT_SYMBOL(clk_set_parent);
207 207
208struct clk *clk_get_parent(struct clk *clk) 208struct clk *clk_get_parent(struct clk *clk)
209{ 209{
210 unsigned long flags; 210 return clk->parent;
211 struct clk * ret = NULL;
212
213 if (clk == NULL || IS_ERR(clk))
214 return ret;
215
216 spin_lock_irqsave(&clockfw_lock, flags);
217 if (arch_clock->clk_get_parent)
218 ret = arch_clock->clk_get_parent(clk);
219 spin_unlock_irqrestore(&clockfw_lock, flags);
220
221 return ret;
222} 211}
223EXPORT_SYMBOL(clk_get_parent); 212EXPORT_SYMBOL(clk_get_parent);
224 213
diff --git a/arch/arm/plat-omap/include/mach/clock.h b/arch/arm/plat-omap/include/mach/clock.h
index 4831bbdaf014..06dd38a8a0c0 100644
--- a/arch/arm/plat-omap/include/mach/clock.h
+++ b/arch/arm/plat-omap/include/mach/clock.h
@@ -102,7 +102,6 @@ struct clk_functions {
102 long (*clk_round_rate)(struct clk *clk, unsigned long rate); 102 long (*clk_round_rate)(struct clk *clk, unsigned long rate);
103 int (*clk_set_rate)(struct clk *clk, unsigned long rate); 103 int (*clk_set_rate)(struct clk *clk, unsigned long rate);
104 int (*clk_set_parent)(struct clk *clk, struct clk *parent); 104 int (*clk_set_parent)(struct clk *clk, struct clk *parent);
105 struct clk * (*clk_get_parent)(struct clk *clk);
106 void (*clk_allow_idle)(struct clk *clk); 105 void (*clk_allow_idle)(struct clk *clk);
107 void (*clk_deny_idle)(struct clk *clk); 106 void (*clk_deny_idle)(struct clk *clk);
108 void (*clk_disable_unused)(struct clk *clk); 107 void (*clk_disable_unused)(struct clk *clk);