Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 196205
b: refs/heads/master
c: 3587aeb
h: refs/heads/master
i:
  196203: b454502
v: v3
  • Loading branch information
Paul Walmsley committed May 20, 2010
1 parent f90c8b6 commit bb5adc1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2a9f5a4d455aa88a03dac1dca8f686e3c21fc1b2
refs/heads/master: 3587aeb067a71b26aa0349daf061572a17e6dcba
28 changes: 15 additions & 13 deletions trunk/arch/arm/plat-omap/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@
*/
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/list.h>
#include <linux/errno.h>
#include <linux/err.h>
#include <linux/string.h>
#include <linux/clk.h>
#include <linux/mutex.h>
#include <linux/platform_device.h>
#include <linux/cpufreq.h>
#include <linux/debugfs.h>
#include <linux/io.h>
Expand All @@ -32,9 +30,9 @@ static DEFINE_SPINLOCK(clockfw_lock);

static struct clk_functions *arch_clock;

/*-------------------------------------------------------------------------
/*
* Standard clock functions defined in include/linux/clk.h
*-------------------------------------------------------------------------*/
*/

int clk_enable(struct clk *clk)
{
Expand Down Expand Up @@ -92,9 +90,9 @@ unsigned long clk_get_rate(struct clk *clk)
}
EXPORT_SYMBOL(clk_get_rate);

/*-------------------------------------------------------------------------
/*
* Optional clock functions defined in include/linux/clk.h
*-------------------------------------------------------------------------*/
*/

long clk_round_rate(struct clk *clk, unsigned long rate)
{
Expand Down Expand Up @@ -140,9 +138,11 @@ int clk_set_parent(struct clk *clk, struct clk *parent)
unsigned long flags;
int ret = -EINVAL;

if (cpu_is_omap44xx())
/* OMAP4 clk framework not supported yet */
if (cpu_is_omap44xx()) {
WARN(1, "clock: %s: not supported yet on OMAP4\n", __func__);
return 0;
}

if (clk == NULL || IS_ERR(clk) || parent == NULL || IS_ERR(parent))
return ret;

Expand All @@ -169,9 +169,9 @@ struct clk *clk_get_parent(struct clk *clk)
}
EXPORT_SYMBOL(clk_get_parent);

/*-------------------------------------------------------------------------
/*
* OMAP specific clock functions shared between omap1 and omap2
*-------------------------------------------------------------------------*/
*/

int __initdata mpurate;

Expand Down Expand Up @@ -222,7 +222,7 @@ void clk_reparent(struct clk *child, struct clk *parent)
}

/* Propagate rate to children */
void propagate_rate(struct clk * tclk)
void propagate_rate(struct clk *tclk)
{
struct clk *clkp;

Expand Down Expand Up @@ -389,7 +389,9 @@ void clk_exit_cpufreq_table(struct cpufreq_frequency_table **table)
}
#endif

/*-------------------------------------------------------------------------*/
/*
*
*/

#ifdef CONFIG_OMAP_RESET_CLOCKS
/*
Expand All @@ -404,7 +406,7 @@ static int __init clk_disable_unused(void)
if (ck->ops == &clkops_null)
continue;

if (ck->usecount > 0 || ck->enable_reg == 0)
if (ck->usecount > 0 || !ck->enable_reg)
continue;

spin_lock_irqsave(&clockfw_lock, flags);
Expand Down

0 comments on commit bb5adc1

Please sign in to comment.