]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: CLKFW: Remove procfs entry for debugging clock framework
authorHiroshi DOYU <Hiroshi.DOYU@nokia.com>
Thu, 17 Apr 2008 13:51:41 +0000 (16:51 +0300)
committerTony Lindgren <tony@atomide.com>
Mon, 21 Apr 2008 18:39:40 +0000 (11:39 -0700)
This feature can be covered by debugfs for omap clock framework.

Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/clock.c

index 2ae87bfda807c40347c61cd06ade51ae2962f2b4..714dbbf169674dc7e8a08283e4d33421d10661e9 100644 (file)
@@ -34,41 +34,6 @@ static DEFINE_SPINLOCK(clockfw_lock);
 
 static struct clk_functions *arch_clock;
 
-#ifdef CONFIG_PM_DEBUG
-
-static void print_parents(struct clk *clk)
-{
-       struct clk *p;
-       int printed = 0;
-
-       list_for_each_entry(p, &clocks, node) {
-               if (p->parent == clk && p->usecount) {
-                       if (!clk->usecount && !printed) {
-                               printk("MISMATCH: %s\n", clk->name);
-                               printed = 1;
-                       }
-                       printk("\t%-15s\n", p->name);
-               }
-       }
-}
-
-void clk_print_usecounts(void)
-{
-       unsigned long flags;
-       struct clk *p;
-
-       spin_lock_irqsave(&clockfw_lock, flags);
-       list_for_each_entry(p, &clocks, node) {
-               if (p->usecount)
-                       printk("%-15s: %d\n", p->name, p->usecount);
-               print_parents(p);
-
-       }
-       spin_unlock_irqrestore(&clockfw_lock, flags);
-}
-
-#endif
-
 /*-------------------------------------------------------------------------
  * Standard clock functions defined in include/linux/clk.h
  *-------------------------------------------------------------------------*/
@@ -447,67 +412,6 @@ int __init clk_init(struct clk_functions * custom_clocks)
        return 0;
 }
 
-#if defined(CONFIG_PM_DEBUG) && defined(CONFIG_PROC_FS)
-#include <linux/proc_fs.h>
-#include <linux/seq_file.h>
-
-static void *omap_ck_start(struct seq_file *m, loff_t *pos)
-{
-       return *pos < 1 ? (void *)1 : NULL;
-}
-
-static void *omap_ck_next(struct seq_file *m, void *v, loff_t *pos)
-{
-       ++*pos;
-       return NULL;
-}
-
-static void omap_ck_stop(struct seq_file *m, void *v)
-{
-}
-
-int omap_ck_show(struct seq_file *m, void *v)
-{
-       struct clk *cp;
-
-       list_for_each_entry(cp, &clocks, node)
-               seq_printf(m,"%s %ld %d\n", cp->name, cp->rate, cp->usecount);
-
-       return 0;
-}
-
-static struct seq_operations omap_ck_op = {
-       .start =        omap_ck_start,
-       .next =         omap_ck_next,
-       .stop =         omap_ck_stop,
-       .show =         omap_ck_show
-};
-
-static int omap_ck_open(struct inode *inode, struct file *file)
-{
-       return seq_open(file, &omap_ck_op);
-}
-
-static struct file_operations proc_omap_ck_operations = {
-       .open           = omap_ck_open,
-       .read           = seq_read,
-       .llseek         = seq_lseek,
-       .release        = seq_release,
-};
-
-int __init omap_ck_init(void)
-{
-       struct proc_dir_entry *entry;
-
-       entry = create_proc_entry("omap_clocks", 0, NULL);
-       if (entry)
-               entry->proc_fops = &proc_omap_ck_operations;
-       return 0;
-
-}
-__initcall(omap_ck_init);
-#endif
-
 #if defined(CONFIG_PM_DEBUG) && defined(CONFIG_DEBUG_FS)
 /*
  *     debugfs support to trace clock tree hierarchy and attributes