From e809ae285eb634f3a4f4d6ed3b77b805a07ac1f5 Mon Sep 17 00:00:00 2001 From: Kevin Hilman Date: Wed, 12 Jul 2006 07:14:49 -0700 Subject: [PATCH] ARM: OMAP: fix RESET_CLOCKS, was broken by gcc4 compile fixes Signed-off-by: Kevin Hilman (cherry picked from 64929d882591a213cb51407992f28c42121b2f7d commit) --- arch/arm/plat-omap/clock.c | 4 ++-- include/asm-arm/arch-omap/clock.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/plat-omap/clock.c b/arch/arm/plat-omap/clock.c index 43931d927bb..79a82f89c06 100644 --- a/arch/arm/plat-omap/clock.c +++ b/arch/arm/plat-omap/clock.c @@ -28,9 +28,9 @@ #include -static LIST_HEAD(clocks); +LIST_HEAD(clocks); +DEFINE_SPINLOCK(clockfw_lock); static DEFINE_MUTEX(clocks_mutex); -static DEFINE_SPINLOCK(clockfw_lock); static struct clk_functions *arch_clock; diff --git a/include/asm-arm/arch-omap/clock.h b/include/asm-arm/arch-omap/clock.h index fa688104990..53e89494cd6 100644 --- a/include/asm-arm/arch-omap/clock.h +++ b/include/asm-arm/arch-omap/clock.h @@ -49,6 +49,8 @@ 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); -- 2.41.0