]> Pileus Git - ~andy/linux/blobdiff - arch/arm/mach-omap1/clock.c
OMAP1/2/3 clock: remove paranoid checks in preparation for clock{,2xxx,3xxx}_data.c
[~andy/linux] / arch / arm / mach-omap1 / clock.c
index 42cbe203da36d6030f04807aed36025e8c63e54b..e006493fe6e30ef7da96172be04c7cb9bf883190 100644 (file)
@@ -376,9 +376,6 @@ static int omap1_select_table_rate(struct clk * clk, unsigned long rate)
        /* Find the highest supported frequency <= rate and switch to it */
        struct mpu_rate * ptr;
 
-       if (clk != &virtual_ck_mpu)
-               return -EINVAL;
-
        for (ptr = rate_table; ptr->rate; ptr++) {
                if (ptr->xtal != ck_ref.rate)
                        continue;
@@ -465,9 +462,6 @@ static long omap1_round_to_table_rate(struct clk * clk, unsigned long rate)
        struct mpu_rate * ptr;
        long  highest_rate;
 
-       if (clk != &virtual_ck_mpu)
-               return -EINVAL;
-
        highest_rate = -EINVAL;
 
        for (ptr = rate_table; ptr->rate; ptr++) {