ARM: tegra: clock: Drop set_rate on audio clocks
authorColin Cross <ccross@android.com>
Tue, 2 Nov 2010 00:24:32 +0000 (17:24 -0700)
committerColin Cross <ccross@android.com>
Thu, 4 Nov 2010 00:37:56 +0000 (17:37 -0700)
Signed-off-by: Colin Cross <ccross@android.com>
Change-Id: Idabc71386e7a2fba214d243405e70149faf47a8e

arch/arm/mach-tegra/tegra2_clocks.c

index 253de093a8ef89ef490e273d78c221957019c284..7f5ed03fa958fff4c12cde04681ac7e9d1793d4b 100644 (file)
@@ -1083,30 +1083,10 @@ static int tegra2_audio_sync_clk_set_parent(struct clk *c, struct clk *p)
        return -EINVAL;
 }
 
-static int tegra2_audio_sync_clk_set_rate(struct clk *c, unsigned long rate)
-{
-       unsigned long parent_rate;
-       if (!c->parent) {
-               pr_err("%s: clock has no parent\n", __func__);
-               return -EINVAL;
-       }
-       parent_rate = c->parent->rate;
-       if (rate != parent_rate) {
-               pr_err("%s: %s/%ld differs from parent %s/%ld\n",
-                       __func__,
-                       c->name, rate,
-                       c->parent->name, parent_rate);
-               return -EINVAL;
-       }
-       c->rate = parent_rate;
-       return 0;
-}
-
 static struct clk_ops tegra_audio_sync_clk_ops = {
        .init       = tegra2_audio_sync_clk_init,
        .enable     = tegra2_audio_sync_clk_enable,
        .disable    = tegra2_audio_sync_clk_disable,
-       .set_rate   = tegra2_audio_sync_clk_set_rate,
        .set_parent = tegra2_audio_sync_clk_set_parent,
 };