aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap1
diff options
context:
space:
mode:
authorPaul Walmsley <paul@pwsan.com>2009-12-08 18:18:44 -0500
committerpaul <paul@twilight.(none)>2009-12-11 18:12:07 -0500
commitebd893ded2733b8bd9ba403ee4a9e6ab6fbc2a54 (patch)
treec8c31ef40c271421ddebe16c5f513a97268d503e /arch/arm/mach-omap1
parentaa2cf420593b67cc93de7a3f675b2a88eba0505f (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-omap1')
-rw-r--r--arch/arm/mach-omap1/clock.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/arm/mach-omap1/clock.c b/arch/arm/mach-omap1/clock.c
index 42cbe203da36..e006493fe6e3 100644
--- a/arch/arm/mach-omap1/clock.c
+++ b/arch/arm/mach-omap1/clock.c
@@ -376,9 +376,6 @@ static int omap1_select_table_rate(struct clk * clk, unsigned long rate)
376 /* Find the highest supported frequency <= rate and switch to it */ 376 /* Find the highest supported frequency <= rate and switch to it */
377 struct mpu_rate * ptr; 377 struct mpu_rate * ptr;
378 378
379 if (clk != &virtual_ck_mpu)
380 return -EINVAL;
381
382 for (ptr = rate_table; ptr->rate; ptr++) { 379 for (ptr = rate_table; ptr->rate; ptr++) {
383 if (ptr->xtal != ck_ref.rate) 380 if (ptr->xtal != ck_ref.rate)
384 continue; 381 continue;
@@ -465,9 +462,6 @@ static long omap1_round_to_table_rate(struct clk * clk, unsigned long rate)
465 struct mpu_rate * ptr; 462 struct mpu_rate * ptr;
466 long highest_rate; 463 long highest_rate;
467 464
468 if (clk != &virtual_ck_mpu)
469 return -EINVAL;
470
471 highest_rate = -EINVAL; 465 highest_rate = -EINVAL;
472 466
473 for (ptr = rate_table; ptr->rate; ptr++) { 467 for (ptr = rate_table; ptr->rate; ptr++) {