ARM: tegra: clock: Add round_rate op for shared clocks

Change-Id: Ica3f9fd9db4fe38f2c9ca3fc248526211f59c622
Signed-off-by: Colin Cross <ccross@android.com>
This commit is contained in:
Colin Cross
2011-01-14 15:06:29 -08:00
parent cea5c11234
commit 5feeeb6ace

View File

@@ -1245,6 +1245,11 @@ static int tegra_clk_shared_bus_set_rate(struct clk *c, unsigned long rate)
return 0;
}
static long tegra_clk_shared_bus_round_rate(struct clk *c, unsigned long rate)
{
return clk_round_rate(c->parent, rate);
}
static int tegra_clk_shared_bus_enable(struct clk *c)
{
c->u.shared_bus_user.enabled = true;
@@ -1263,6 +1268,7 @@ static struct clk_ops tegra_clk_shared_bus_ops = {
.enable = tegra_clk_shared_bus_enable,
.disable = tegra_clk_shared_bus_disable,
.set_rate = tegra_clk_shared_bus_set_rate,
.round_rate = tegra_clk_shared_bus_round_rate,
};