diff --git a/drivers/opp/core.c b/drivers/opp/core.c index 437283fe38fa..6f8d2c0b2064 100644 --- a/drivers/opp/core.c +++ b/drivers/opp/core.c @@ -119,15 +119,6 @@ static bool assert_clk_index(struct opp_table *opp_table, return opp_table->clk_count > index; } -/* - * Returns true if bandwidth table is large enough to contain the bandwidth index. - */ -static bool assert_bandwidth_index(struct opp_table *opp_table, - unsigned int index) -{ - return opp_table->path_count > index; -} - /** * dev_pm_opp_get_voltage() - Gets the voltage corresponding to an opp * @opp: opp for which voltage has to be returned for @@ -856,8 +847,7 @@ struct dev_pm_opp *dev_pm_opp_find_bw_ceil(struct device *dev, unsigned int *bw, unsigned long temp = *bw; struct dev_pm_opp *opp; - opp = _find_key_ceil(dev, &temp, index, true, _read_bw, - assert_bandwidth_index); + opp = _find_key_ceil(dev, &temp, index, true, _read_bw, NULL); *bw = temp; return opp; } @@ -888,8 +878,7 @@ struct dev_pm_opp *dev_pm_opp_find_bw_floor(struct device *dev, unsigned long temp = *bw; struct dev_pm_opp *opp; - opp = _find_key_floor(dev, &temp, index, true, _read_bw, - assert_bandwidth_index); + opp = _find_key_floor(dev, &temp, index, true, _read_bw, NULL); *bw = temp; return opp; }