Commit 285881b5 authored by Viresh Kumar's avatar Viresh Kumar

PM / OPP: Remove unused parameter of _generic_set_opp_clk_only()

The previous frequency value isn't getting used in the routine
_generic_set_opp_clk_only(), drop it.
Reviewed-by: default avatarStephen Boyd <sboyd@kernel.org>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent bfeffd15
...@@ -533,9 +533,8 @@ static int _set_opp_voltage(struct device *dev, struct regulator *reg, ...@@ -533,9 +533,8 @@ static int _set_opp_voltage(struct device *dev, struct regulator *reg,
return ret; return ret;
} }
static inline int static inline int _generic_set_opp_clk_only(struct device *dev, struct clk *clk,
_generic_set_opp_clk_only(struct device *dev, struct clk *clk, unsigned long freq)
unsigned long old_freq, unsigned long freq)
{ {
int ret; int ret;
...@@ -572,7 +571,7 @@ static int _generic_set_opp_regulator(const struct opp_table *opp_table, ...@@ -572,7 +571,7 @@ static int _generic_set_opp_regulator(const struct opp_table *opp_table,
} }
/* Change frequency */ /* Change frequency */
ret = _generic_set_opp_clk_only(dev, opp_table->clk, old_freq, freq); ret = _generic_set_opp_clk_only(dev, opp_table->clk, freq);
if (ret) if (ret)
goto restore_voltage; goto restore_voltage;
...@@ -586,7 +585,7 @@ static int _generic_set_opp_regulator(const struct opp_table *opp_table, ...@@ -586,7 +585,7 @@ static int _generic_set_opp_regulator(const struct opp_table *opp_table,
return 0; return 0;
restore_freq: restore_freq:
if (_generic_set_opp_clk_only(dev, opp_table->clk, freq, old_freq)) if (_generic_set_opp_clk_only(dev, opp_table->clk, old_freq))
dev_err(dev, "%s: failed to restore old-freq (%lu Hz)\n", dev_err(dev, "%s: failed to restore old-freq (%lu Hz)\n",
__func__, old_freq); __func__, old_freq);
restore_voltage: restore_voltage:
...@@ -759,7 +758,7 @@ int dev_pm_opp_set_rate(struct device *dev, unsigned long target_freq) ...@@ -759,7 +758,7 @@ int dev_pm_opp_set_rate(struct device *dev, unsigned long target_freq)
opp->supplies); opp->supplies);
} else { } else {
/* Only frequency scaling */ /* Only frequency scaling */
ret = _generic_set_opp_clk_only(dev, clk, old_freq, freq); ret = _generic_set_opp_clk_only(dev, clk, freq);
} }
/* Scaling down? Configure required OPPs after frequency */ /* Scaling down? Configure required OPPs after frequency */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment