Merge branch 'x86-build-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[pandora-kernel.git] / arch / arm / plat-spear / clock.c
index bdbd7ec..67dd003 100644 (file)
@@ -903,6 +903,11 @@ void recalc_root_clocks(void)
        spin_unlock_irqrestore(&clocks_lock, flags);
 }
 
+void __init clk_init(void)
+{
+       recalc_root_clocks();
+}
+
 #ifdef CONFIG_DEBUG_FS
 /*
  *     debugfs support to trace clock tree hierarchy and attributes
@@ -911,7 +916,7 @@ static struct dentry *clk_debugfs_root;
 static int clk_debugfs_register_one(struct clk *c)
 {
        int err;
-       struct dentry *d, *child;
+       struct dentry *d;
        struct clk *pa = c->pclk;
        char s[255];
        char *p = s;
@@ -946,10 +951,7 @@ static int clk_debugfs_register_one(struct clk *c)
        return 0;
 
 err_out:
-       d = c->dent;
-       list_for_each_entry(child, &d->d_subdirs, d_u.d_child)
-               debugfs_remove(child);
-       debugfs_remove(c->dent);
+       debugfs_remove_recursive(c->dent);
        return err;
 }