diff options
author | Paul Walmsley <paul@pwsan.com> | 2009-12-08 18:18:44 -0500 |
---|---|---|
committer | paul <paul@twilight.(none)> | 2009-12-11 18:12:07 -0500 |
commit | ebd893ded2733b8bd9ba403ee4a9e6ab6fbc2a54 (patch) | |
tree | c8c31ef40c271421ddebe16c5f513a97268d503e /arch/arm/mach-omap2/clock24xx.c | |
parent | aa2cf420593b67cc93de7a3f675b2a88eba0505f (diff) |
OMAP1/2/3 clock: remove paranoid checks in preparation for clock{,2xxx,3xxx}_data.c
Some parts of the clock code took advantage of the fact that the statically
allocated clock tree was in clock{,24xx,34xx}.c's local namespace to do some
extra argument checks. These are overzealous and are more difficult to
maintain when the clock tree is in a separate namespace, so, remove them.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/clock24xx.c')
-rw-r--r-- | arch/arm/mach-omap2/clock24xx.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/arm/mach-omap2/clock24xx.c b/arch/arm/mach-omap2/clock24xx.c index 845b478ebeee..8ecd1751a3d8 100644 --- a/arch/arm/mach-omap2/clock24xx.c +++ b/arch/arm/mach-omap2/clock24xx.c | |||
@@ -512,9 +512,6 @@ static long omap2_round_to_table_rate(struct clk *clk, unsigned long rate) | |||
512 | struct prcm_config *ptr; | 512 | struct prcm_config *ptr; |
513 | long highest_rate; | 513 | long highest_rate; |
514 | 514 | ||
515 | if (clk != &virt_prcm_set) | ||
516 | return -EINVAL; | ||
517 | |||
518 | highest_rate = -EINVAL; | 515 | highest_rate = -EINVAL; |
519 | 516 | ||
520 | for (ptr = rate_table; ptr->mpu_speed; ptr++) { | 517 | for (ptr = rate_table; ptr->mpu_speed; ptr++) { |
@@ -540,9 +537,6 @@ static int omap2_select_table_rate(struct clk *clk, unsigned long rate) | |||
540 | unsigned long found_speed = 0; | 537 | unsigned long found_speed = 0; |
541 | unsigned long flags; | 538 | unsigned long flags; |
542 | 539 | ||
543 | if (clk != &virt_prcm_set) | ||
544 | return -EINVAL; | ||
545 | |||
546 | for (prcm = rate_table; prcm->mpu_speed; prcm++) { | 540 | for (prcm = rate_table; prcm->mpu_speed; prcm++) { |
547 | if (!(prcm->flags & cpu_mask)) | 541 | if (!(prcm->flags & cpu_mask)) |
548 | continue; | 542 | continue; |