aboutsummaryrefslogtreecommitdiff
path: root/hw/omap_clk.c
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2009-03-07 21:48:00 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2009-03-07 21:48:00 +0000
commit2b3ea3154d38920238fff4a67f477f989d9d8d24 (patch)
treebb3dc264f3459a3aec5894d39b314e7d1f5b3a09 /hw/omap_clk.c
parenta45db6c6fd587be85118038be3722c1dadeedfe4 (diff)
clean build: Fix arm build warnings
Fix remaining arm warnings - except for the mess in the NetWinder FP emulator. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6766 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/omap_clk.c')
-rw-r--r--hw/omap_clk.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/hw/omap_clk.c b/hw/omap_clk.c
index 38b098e56a..d7a5a577d4 100644
--- a/hw/omap_clk.c
+++ b/hw/omap_clk.c
@@ -1098,23 +1098,6 @@ void omap_clk_adduser(struct clk *clk, qemu_irq user)
*i = user;
}
-/* If a clock is allowed to idle, it is disabled automatically when
- * all of clock domains using it are disabled. */
-static int omap_clk_is_idle(struct clk *clk)
-{
- struct clk *chld;
-
- if (!clk->enabled && (!clk->usecount || !(clk->flags && ALWAYS_ENABLED)))
- return 1;
- if (clk->usecount)
- return 0;
-
- for (chld = clk->child1; chld; chld = chld->sibling)
- if (!omap_clk_is_idle(chld))
- return 0;
- return 1;
-}
-
struct clk *omap_findclk(struct omap_mpu_state_s *mpu, const char *name)
{
struct clk *i;