]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - arch/arm/plat-omap/clock.c
OMAP clock: resolve all remaining sparse warnings
[mv-sheeva.git] / arch / arm / plat-omap / clock.c
index d9f8c844c385fa18f7b92aa88431296df9f75140..0ae27538385d7b69f46afddb4947e5f099939d16 100644 (file)
@@ -173,7 +173,7 @@ EXPORT_SYMBOL(clk_get_parent);
  * OMAP specific clock functions shared between omap1 and omap2
  *-------------------------------------------------------------------------*/
 
-unsigned int __initdata mpurate;
+int __initdata mpurate;
 
 /*
  * By default we use the rate set by the bootloader.
@@ -199,6 +199,17 @@ unsigned long followparent_recalc(struct clk *clk)
        return clk->parent->rate;
 }
 
+/*
+ * Used for clocks that have the same value as the parent clock,
+ * divided by some factor
+ */
+unsigned long omap_fixed_divisor_recalc(struct clk *clk)
+{
+       WARN_ON(!clk->fixed_div);
+
+       return clk->parent->rate / clk->fixed_div;
+}
+
 void clk_reparent(struct clk *child, struct clk *parent)
 {
        list_del_init(&child->sibling);