]> pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: Sync clock code with mainline
authorTony Lindgren <tony@atomide.com>
Mon, 25 Sep 2006 10:04:32 +0000 (13:04 +0300)
committerTony Lindgren <tony@atomide.com>
Mon, 25 Sep 2006 10:04:32 +0000 (13:04 +0300)
These can be static now that CONFIG_OMAP_RESET_CLOCKS
is rearranged.

Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap1/clock.c
arch/arm/plat-omap/clock.c
include/asm-arm/arch-omap/clock.h

index 7a25e8dc5654f1656e1493675d73c0b191b09b4f..638490e62d5f5ebb7e07a21f586c521b9b2f2fe2 100644 (file)
@@ -630,8 +630,6 @@ static void __init omap1_clk_disable_unused(struct clk *clk)
        printk(KERN_INFO "Disabling unused clock \"%s\"... ", clk->name);
        clk->disable(clk);
        printk(" done\n");
-
-       return 0;
 }
 
 #else
index 73a2aec0f887960ae692be16e29ad988077aac8a..969e6ea28917d44fb052c2a0d4cb60f759c9aaff 100644 (file)
@@ -11,7 +11,6 @@
  * published by the Free Software Foundation.
  */
 #include <linux/version.h>
-#include <linux/config.h>
 #include <linux/kernel.h>
 #include <linux/init.h>
 #include <linux/module.h>
@@ -28,9 +27,9 @@
 
 #include <asm/arch/clock.h>
 
-LIST_HEAD(clocks);
-DEFINE_SPINLOCK(clockfw_lock);
+static LIST_HEAD(clocks);
 static DEFINE_MUTEX(clocks_mutex);
+static DEFINE_SPINLOCK(clockfw_lock);
 
 static struct clk_functions *arch_clock;
 
index 53e89494cd604c6d1034aa233b3295b1da10bc65..fa68810499034057f5b8544606a8579dd8d58eee 100644 (file)
@@ -49,8 +49,6 @@ struct clk_functions {
 };
 
 extern unsigned int mpurate;
-extern struct list_head clocks;
-extern spinlock_t clockfw_lock;
 
 extern int clk_init(struct clk_functions * custom_clocks);
 extern int clk_register(struct clk *clk);