diff options
author | Thierry Reding <treding@nvidia.com> | 2016-04-08 15:16:28 +0200 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2016-04-28 12:41:54 +0200 |
commit | f7c42d98621739d416cc4a739b721574fcbe910c (patch) | |
tree | cbd6f61c1a1b90780e63e7be5c3c4d3bd0988b5e /drivers/clk/tegra/cvb.h | |
parent | clk: tegra: dfll: Make code more comprehensible (diff) | |
download | linux-f7c42d98621739d416cc4a739b721574fcbe910c.tar.xz linux-f7c42d98621739d416cc4a739b721574fcbe910c.zip |
clk: tegra: dfll: Properly clean up on failure and removal
Upon failure to probe the DFLL, the OPP table will not be cleaned up
properly. Fix this and while at it make sure the OPP table will also be
cleared upon driver removal.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/clk/tegra/cvb.h')
-rw-r--r-- | drivers/clk/tegra/cvb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/clk/tegra/cvb.h b/drivers/clk/tegra/cvb.h index e6bf8581badd..c1f077993b2a 100644 --- a/drivers/clk/tegra/cvb.h +++ b/drivers/clk/tegra/cvb.h @@ -61,5 +61,8 @@ const struct cvb_table * tegra_cvb_add_opp_table(struct device *dev, const struct cvb_table *cvb_tables, size_t count, int process_id, int speedo_id, int speedo_value, unsigned long max_freq); +void tegra_cvb_remove_opp_table(struct device *dev, + const struct cvb_table *table, + unsigned long max_freq); #endif |